diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-02-15 22:47:53 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-02-15 22:47:53 +0000 |
commit | a0009ee85aea460111104297aa951b44f5e95039 (patch) | |
tree | 82957ee80024df44b2d84114d8179b557f84543d /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | f15502f2e5e1961ee9ee50745077b204fd7cace2 (diff) | |
download | bcm5719-llvm-a0009ee85aea460111104297aa951b44f5e95039.tar.gz bcm5719-llvm-a0009ee85aea460111104297aa951b44f5e95039.zip |
Use 'getDataNoRel' for the section kind.
llvm-svn: 150628
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 90487d91661..66825b4d4b6 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/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"))); |