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

Side by Side Diff: include/llvm/Object/COFF.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/Binary.h ('k') | include/llvm/Object/ELF.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 //===- COFF.h - COFF object file implementation -----------------*- C++ -*-===// 1 //===- COFF.h - COFF 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 COFFObjectFile class. 10 // This file declares the COFFObjectFile class.
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 template <typename T> 172 template <typename T>
173 error_code getAuxSymbol(uint32_t index, const T *&Res) const { 173 error_code getAuxSymbol(uint32_t index, const T *&Res) const {
174 const coff_symbol *s; 174 const coff_symbol *s;
175 error_code ec = getSymbol(index, s); 175 error_code ec = getSymbol(index, s);
176 Res = reinterpret_cast<const T*>(s); 176 Res = reinterpret_cast<const T*>(s);
177 return ec; 177 return ec;
178 } 178 }
179 error_code getSymbolName(const coff_symbol *symbol, StringRef &Res) const; 179 error_code getSymbolName(const coff_symbol *symbol, StringRef &Res) const;
180 180
181 static inline bool classof(const Binary *v) { 181 static inline bool classof(const Binary *v) {
182 return v->getType() == isCOFF; 182 return v->isCOFF();
183 } 183 }
184 static inline bool classof(const COFFObjectFile *v) { return true; } 184 static inline bool classof(const COFFObjectFile *v) { return true; }
185 }; 185 };
186 186
187 } 187 }
188 } 188 }
189 189
190 #endif 190 #endif
OLDNEW
« no previous file with comments | « include/llvm/Object/Binary.h ('k') | include/llvm/Object/ELF.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698