summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2016-01-29 23:51:00 +0000
committerManman Ren <manman.ren@gmail.com>2016-01-29 23:51:00 +0000
commitc77e0ff7854f27e5ec81ce2efa98f84dda2bb363 (patch)
treeefbc8361b7582a64581606969fab5db1e75e4fb9 /llvm/lib/CodeGen
parentce7bff5e7fc1ca5d66c3068f97d719dfbad5bd10 (diff)
downloadbcm5719-llvm-c77e0ff7854f27e5ec81ce2efa98f84dda2bb363.tar.gz
bcm5719-llvm-c77e0ff7854f27e5ec81ce2efa98f84dda2bb363.zip
[Objective-C] Support a new special module flag.
"Objective-C Class Properties" will be put into the objc_imageinfo struct. rdar://23891898 llvm-svn: 259270
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 3c9026e3283..bcaad86a511 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -467,6 +467,7 @@ emitModuleFlags(MCStreamer &Streamer,
} else if (Key == "Objective-C Garbage Collection" ||
Key == "Objective-C GC Only" ||
Key == "Objective-C Is Simulated" ||
+ Key == "Objective-C Class Properties" ||
Key == "Objective-C Image Swift Version") {
ImageInfoFlags |= mdconst::extract<ConstantInt>(Val)->getZExtValue();
} else if (Key == "Objective-C Image Info Section") {
OpenPOWER on IntegriCloud