Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(682)

Side by Side Diff: include/llvm/Object/MachO.h

Issue 9617030: Distinguish between ELF 32/64, little/big endian, in the type system of Binary.h (Closed) Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: x Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/llvm/Object/ELF.h ('k') | include/llvm/Object/ObjectFile.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « include/llvm/Object/ELF.h ('k') | include/llvm/Object/ObjectFile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698