summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2014-11-21 19:24:55 +0000
committerManman Ren <manman.ren@gmail.com>2014-11-21 19:24:55 +0000
commitc98ec0e70ae65654a9c6160b9131073717e55405 (patch)
tree5e9535de477e624e2071ae0d3fbc2a83bba466cc /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentcbb18e342fed9d9a031b0834917b2d46f4b89998 (diff)
downloadbcm5719-llvm-c98ec0e70ae65654a9c6160b9131073717e55405.tar.gz
bcm5719-llvm-c98ec0e70ae65654a9c6160b9131073717e55405.zip
[Objective-C] Support a new special module flag that will be put into the
objc_imageinfo struct. rdar://17954668 llvm-svn: 222558
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index efd15e15114..e52552af5e4 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -470,7 +470,8 @@ emitModuleFlags(MCStreamer &Streamer,
VersionVal = cast<ConstantInt>(Val)->getZExtValue();
} else if (Key == "Objective-C Garbage Collection" ||
Key == "Objective-C GC Only" ||
- Key == "Objective-C Is Simulated") {
+ Key == "Objective-C Is Simulated" ||
+ Key == "Objective-C Image Swift Version") {
ImageInfoFlags |= cast<ConstantInt>(Val)->getZExtValue();
} else if (Key == "Objective-C Image Info Section") {
SectionVal = cast<MDString>(Val)->getString();
OpenPOWER on IntegriCloud