summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/File.h
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-01-19 18:46:40 +0000
committerPete Cooper <peter_cooper@apple.com>2016-01-19 18:46:40 +0000
commitfeaa967ee813be3fa34ebc2b7a4751f2ec821df5 (patch)
tree7733266fc2ad3af0bce659664619424f33233362 /lld/lib/ReaderWriter/MachO/File.h
parent1a196f7dafb324ee9cd1d8e77aef500910053fea (diff)
downloadbcm5719-llvm-feaa967ee813be3fa34ebc2b7a4751f2ec821df5.tar.gz
bcm5719-llvm-feaa967ee813be3fa34ebc2b7a4751f2ec821df5.zip
Cache the objc image info constraints in file.
Image info flags describe the objc constraint which is GC/retain/release/etc. These need to be parsed and stored in the file so that we can do error checking. That will come in a later commit. llvm-svn: 258160
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/File.h')
-rw-r--r--lld/lib/ReaderWriter/MachO/File.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lld/lib/ReaderWriter/MachO/File.h b/lld/lib/ReaderWriter/MachO/File.h
index 7b28590d3ca..1ba71dc67dc 100644
--- a/lld/lib/ReaderWriter/MachO/File.h
+++ b/lld/lib/ReaderWriter/MachO/File.h
@@ -194,6 +194,13 @@ public:
MachOLinkingContext::OS OS() const { return _os; }
void setOS(MachOLinkingContext::OS os) { _os = os; }
+ MachOLinkingContext::ObjCConstraint objcConstraint() const {
+ return _objcConstraint;
+ }
+ void setObjcConstraint(MachOLinkingContext::ObjCConstraint v) {
+ _objcConstraint = v;
+ }
+
uint32_t swiftVersion() const { return _swiftVersion; }
void setSwiftVersion(uint32_t v) { _swiftVersion = v; }
@@ -242,6 +249,8 @@ private:
NameToAtom _undefAtoms;
MachOLinkingContext::Arch _arch = MachOLinkingContext::arch_unknown;
MachOLinkingContext::OS _os = MachOLinkingContext::OS::unknown;
+ MachOLinkingContext::ObjCConstraint _objcConstraint =
+ MachOLinkingContext::objc_unknown;
uint32_t _swiftVersion = 0;
normalized::FileFlags _flags;
};
OpenPOWER on IntegriCloud