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