OSDN Git Service

[Objective-C] Support a new special module flag.
authorManman Ren <manman.ren@gmail.com>
Fri, 29 Jan 2016 23:51:00 +0000 (23:51 +0000)
committerManman Ren <manman.ren@gmail.com>
Fri, 29 Jan 2016 23:51:00 +0000 (23:51 +0000)
"Objective-C Class Properties" will be put into the objc_imageinfo struct.

rdar://23891898

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259270 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetLoweringObjectFileImpl.cpp

index 3c9026e..bcaad86 100644 (file)
@@ -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") {