[Objective-C] Support a new special module flag that will be put into the
authorManman Ren <manman.ren@gmail.com>
Fri, 21 Nov 2014 19:24:55 +0000 (19:24 +0000)
committerManman Ren <manman.ren@gmail.com>
Fri, 21 Nov 2014 19:24:55 +0000 (19:24 +0000)
objc_imageinfo struct.

rdar://17954668

llvm-svn: 222558

llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

index efd15e1..e52552a 100644 (file)
@@ -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();