OLD | NEW |
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 Loading... |
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 |
OLD | NEW |