From 7e19efdbb3f6dec6849c2156bab09d8f2f58a1ac Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Fri, 21 Nov 2014 19:24:55 +0000 Subject: [PATCH] [Objective-C] Support a new special module flag that will be put into the objc_imageinfo struct. rdar://17954668 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222558 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index efd15e15114..e52552af5e4 100644 --- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -470,7 +470,8 @@ emitModuleFlags(MCStreamer &Streamer, VersionVal = cast(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(Val)->getZExtValue(); } else if (Key == "Objective-C Image Info Section") { SectionVal = cast(Val)->getString(); -- 2.34.1