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

Side by Side Diff: include/llvm/Object/Archive.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 | « no previous file | include/llvm/Object/Binary.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 //===- Archive.h - ar archive file format -----------------------*- C++ -*-===// 1 //===- Archive.h - ar archive file format -----------------------*- 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 ar archive file format class. 10 // This file declares the ar archive file format class.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 child_iterator begin_children(bool skip_internal = true) const; 125 child_iterator begin_children(bool skip_internal = true) const;
126 child_iterator end_children() const; 126 child_iterator end_children() const;
127 127
128 symbol_iterator begin_symbols() const; 128 symbol_iterator begin_symbols() const;
129 symbol_iterator end_symbols() const; 129 symbol_iterator end_symbols() const;
130 130
131 // Cast methods. 131 // Cast methods.
132 static inline bool classof(Archive const *v) { return true; } 132 static inline bool classof(Archive const *v) { return true; }
133 static inline bool classof(Binary const *v) { 133 static inline bool classof(Binary const *v) {
134 return v->getType() == Binary::isArchive; 134 return v->isArchive();
135 } 135 }
136 136
137 private: 137 private:
138 child_iterator SymbolTable; 138 child_iterator SymbolTable;
139 child_iterator StringTable; 139 child_iterator StringTable;
140 }; 140 };
141 141
142 } 142 }
143 } 143 }
144 144
145 #endif 145 #endif
OLDNEW
« no previous file with comments | « no previous file | include/llvm/Object/Binary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698