mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-01-04 01:21:45 +00:00
[llvm-readobj] add support for macho universal binary.
Patch by Keyue Hu (Chilledheart)! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233107 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/ADT/Triple.h"
|
||||
#include "llvm/ADT/iterator_range.h"
|
||||
#include "llvm/Object/Archive.h"
|
||||
#include "llvm/Object/Binary.h"
|
||||
#include "llvm/Object/MachO.h"
|
||||
@@ -69,9 +70,8 @@ public:
|
||||
ObjectForArch Obj;
|
||||
public:
|
||||
object_iterator(const ObjectForArch &Obj) : Obj(Obj) {}
|
||||
const ObjectForArch* operator->() const {
|
||||
return &Obj;
|
||||
}
|
||||
const ObjectForArch *operator->() const { return &Obj; }
|
||||
const ObjectForArch &operator*() const { return Obj; }
|
||||
|
||||
bool operator==(const object_iterator &Other) const {
|
||||
return Obj == Other.Obj;
|
||||
@@ -97,6 +97,10 @@ public:
|
||||
return ObjectForArch(nullptr, 0);
|
||||
}
|
||||
|
||||
iterator_range<object_iterator> objects() const {
|
||||
return make_range(begin_objects(), end_objects());
|
||||
}
|
||||
|
||||
uint32_t getNumberOfObjects() const { return NumberOfObjects; }
|
||||
|
||||
// Cast methods.
|
||||
|
||||
Reference in New Issue
Block a user