Use 'getDataNoRel' for the section kind.
authorBill Wendling <isanbard@gmail.com>
Wed, 15 Feb 2012 22:47:53 +0000 (22:47 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 15 Feb 2012 22:47:53 +0000 (22:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150628 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetLoweringObjectFileImpl.cpp

index 90487d9166146faad7fdd5ddfff9796627c5b76a..66825b4d4b6b32d5de0c716dbe1d8736182b4173 100644 (file)
@@ -410,16 +410,15 @@ emitModuleFlags(MCStreamer &Streamer,
   std::string ErrorCode =
     MCSectionMachO::ParseSectionSpecifier(SectionVal, Segment, Section,
                                           TAA, TAAParsed, StubSize);
-  if (!ErrorCode.empty()) {
+  if (!ErrorCode.empty())
     // If invalid, report the error with report_fatal_error.
-    report_fatal_error("Invalid section specifier '" +
-                       Section + "': " + ErrorCode + ".");
-  }
+    report_fatal_error("Invalid section specifier '" + Section + "': " +
+                       ErrorCode + ".");
 
   // Get the section.
   const MCSectionMachO *S =
     getContext().getMachOSection(Segment, Section, TAA, StubSize,
-                                 SectionKind::getDataRel());
+                                 SectionKind::getDataNoRel());
   Streamer.SwitchSection(S);
   Streamer.EmitLabel(getContext().
                      GetOrCreateSymbol(StringRef("L_OBJC_IMAGE_INFO")));