aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-02-15 22:47:53 +0000
committerBill Wendling <isanbard@gmail.com>2012-02-15 22:47:53 +0000
commit2de3ff50439918b5a822b3d06d4d7c5826e11e6c (patch)
tree5c8f0bc9cd2f92e5bd70bb2f451ff4cdfe32fd33 /lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentcc72913268ccf5e0fb2785496a1dee764ecce5ff (diff)
downloadexternal_llvm-2de3ff50439918b5a822b3d06d4d7c5826e11e6c.zip
external_llvm-2de3ff50439918b5a822b3d06d4d7c5826e11e6c.tar.gz
external_llvm-2de3ff50439918b5a822b3d06d4d7c5826e11e6c.tar.bz2
Use 'getDataNoRel' for the section kind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--lib/CodeGen/TargetLoweringObjectFileImpl.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 90487d9..66825b4 100644
--- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -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")));