llvm.org GIT mirror llvm / 5b957e6
Formatting and 80-col. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165668 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 7 years ago
1 changed file(s) with 11 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
7575 }
7676 };
7777
78 inline bool operator ==(const DataRefImpl &a, const DataRefImpl &b) {
78 inline bool operator==(const DataRefImpl &a, const DataRefImpl &b) {
7979 // Check bitwise identical. This is the only legal way to compare a union w/o
8080 // knowing which member is in use.
8181 return std::memcmp(&a, &b, sizeof(DataRefImpl)) == 0;
8282 }
8383
84 inline bool operator <(const DataRefImpl &a, const DataRefImpl &b) {
84 inline bool operator<(const DataRefImpl &a, const DataRefImpl &b) {
8585 // Check bitwise identical. This is the only legal way to compare a union w/o
8686 // knowing which member is in use.
8787 return std::memcmp(&a, &b, sizeof(DataRefImpl)) < 0;
143143 SectionRef(DataRefImpl SectionP, const ObjectFile *Owner);
144144
145145 bool operator==(const SectionRef &Other) const;
146 bool operator <(const SectionRef &Other) const;
146 bool operator<(const SectionRef &Other) const;
147147
148148 error_code getNext(SectionRef &Result) const;
149149
207207 SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner);
208208
209209 bool operator==(const SymbolRef &Other) const;
210 bool operator <(const SymbolRef &Other) const;
210 bool operator<(const SymbolRef &Other) const;
211211
212212 error_code getNext(SymbolRef &Result) const;
213213
250250 LibraryRef(DataRefImpl LibraryP, const ObjectFile *Owner);
251251
252252 bool operator==(const LibraryRef &Other) const;
253 bool operator <(const LibraryRef &Other) const;
253 bool operator<(const LibraryRef &Other) const;
254254
255255 error_code getNext(LibraryRef &Result) const;
256256
289289 friend class SymbolRef;
290290 virtual error_code getSymbolNext(DataRefImpl Symb, SymbolRef &Res) const = 0;
291291 virtual error_code getSymbolName(DataRefImpl Symb, StringRef &Res) const = 0;
292 virtual error_code getSymbolAddress(DataRefImpl Symb, uint64_t &Res) const =0;
293 virtual error_code getSymbolFileOffset(DataRefImpl Symb, uint64_t &Res) const =0;
292 virtual error_code getSymbolAddress(DataRefImpl Symb, uint64_t &Res) const = 0;
293 virtual error_code getSymbolFileOffset(DataRefImpl Symb, uint64_t &Res)const=0;
294294 virtual error_code getSymbolSize(DataRefImpl Symb, uint64_t &Res) const = 0;
295295 virtual error_code getSymbolType(DataRefImpl Symb,
296296 SymbolRef::Type &Res) const = 0;
316316 // A section is 'virtual' if its contents aren't present in the object image.
317317 virtual error_code isSectionVirtual(DataRefImpl Sec, bool &Res) const = 0;
318318 virtual error_code isSectionZeroInit(DataRefImpl Sec, bool &Res) const = 0;
319 virtual error_code isSectionReadOnlyData(DataRefImpl Sec, bool &Res) const = 0;
319 virtual error_code isSectionReadOnlyData(DataRefImpl Sec, bool &Res) const =0;
320320 virtual error_code sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb,
321321 bool &Result) const = 0;
322322 virtual relocation_iterator getSectionRelBegin(DataRefImpl Sec) const = 0;
404404 return SymbolPimpl == Other.SymbolPimpl;
405405 }
406406
407 inline bool SymbolRef::operator <(const SymbolRef &Other) const {
407 inline bool SymbolRef::operator<(const SymbolRef &Other) const {
408408 return SymbolPimpl < Other.SymbolPimpl;
409409 }
410410
459459 return SectionPimpl == Other.SectionPimpl;
460460 }
461461
462 inline bool SectionRef::operator <(const SectionRef &Other) const {
462 inline bool SectionRef::operator<(const SectionRef &Other) const {
463463 return SectionPimpl < Other.SectionPimpl;
464464 }
465465
593593 return LibraryPimpl == Other.LibraryPimpl;
594594 }
595595
596 inline bool LibraryRef::operator <(const LibraryRef &Other) const {
596 inline bool LibraryRef::operator<(const LibraryRef &Other) const {
597597 return LibraryPimpl < Other.LibraryPimpl;
598598 }
599599