[llvm] r222558 - [Objective-C] Support a new special module flag that will be put into the
Manman Ren
manman.ren at gmail.com
Fri Nov 21 11:24:56 PST 2014
Author: mren
Date: Fri Nov 21 13:24:55 2014
New Revision: 222558
URL: http://llvm.org/viewvc/llvm-project?rev=222558&view=rev
Log:
[Objective-C] Support a new special module flag that will be put into the
objc_imageinfo struct.
rdar://17954668
Modified:
llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
Modified: llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp?rev=222558&r1=222557&r2=222558&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (original)
+++ llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp Fri Nov 21 13:24:55 2014
@@ -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();
More information about the llvm-commits
mailing list