OLD | NEW |
1 //===- MachO.h - MachO object file implementation ---------------*- C++ -*-===// | 1 //===- MachO.h - MachO object file implementation ---------------*- C++ -*-===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This file declares the MachOObjectFile class, which binds the MachOObject | 10 // This file declares the MachOObjectFile class, which binds the MachOObject |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual section_iterator end_sections() const; | 40 virtual section_iterator end_sections() const; |
41 | 41 |
42 virtual uint8_t getBytesInAddress() const; | 42 virtual uint8_t getBytesInAddress() const; |
43 virtual StringRef getFileFormatName() const; | 43 virtual StringRef getFileFormatName() const; |
44 virtual unsigned getArch() const; | 44 virtual unsigned getArch() const; |
45 virtual StringRef getLoadName() const; | 45 virtual StringRef getLoadName() const; |
46 | 46 |
47 MachOObject *getObject() { return MachOObj; } | 47 MachOObject *getObject() { return MachOObj; } |
48 | 48 |
49 static inline bool classof(const Binary *v) { | 49 static inline bool classof(const Binary *v) { |
50 return v->getType() == isMachO; | 50 return v->isMachO(); |
51 } | 51 } |
52 static inline bool classof(const MachOObjectFile *v) { return true; } | 52 static inline bool classof(const MachOObjectFile *v) { return true; } |
53 | 53 |
54 protected: | 54 protected: |
55 virtual error_code getSymbolNext(DataRefImpl Symb, SymbolRef &Res) const; | 55 virtual error_code getSymbolNext(DataRefImpl Symb, SymbolRef &Res) const; |
56 virtual error_code getSymbolName(DataRefImpl Symb, StringRef &Res) const; | 56 virtual error_code getSymbolName(DataRefImpl Symb, StringRef &Res) const; |
57 virtual error_code getSymbolFileOffset(DataRefImpl Symb, uint64_t &Res) const; | 57 virtual error_code getSymbolFileOffset(DataRefImpl Symb, uint64_t &Res) const; |
58 virtual error_code getSymbolAddress(DataRefImpl Symb, uint64_t &Res) const; | 58 virtual error_code getSymbolAddress(DataRefImpl Symb, uint64_t &Res) const; |
59 virtual error_code getSymbolSize(DataRefImpl Symb, uint64_t &Res) const; | 59 virtual error_code getSymbolSize(DataRefImpl Symb, uint64_t &Res) const; |
60 virtual error_code getSymbolNMTypeChar(DataRefImpl Symb, char &Res) const; | 60 virtual error_code getSymbolNMTypeChar(DataRefImpl Symb, char &Res) const; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
121 void printRelocationTargetName(InMemoryStruct<macho::RelocationEntry>& RE, | 121 void printRelocationTargetName(InMemoryStruct<macho::RelocationEntry>& RE, |
122 raw_string_ostream &fmt) const; | 122 raw_string_ostream &fmt) const; |
123 }; | 123 }; |
124 | 124 |
125 } | 125 } |
126 } | 126 } |
127 | 127 |
128 #endif | 128 #endif |
129 | 129 |
OLD | NEW |