[llvm-commits] [llvm] r150628 - /llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
Bill Wendling
isanbard at gmail.com
Wed Feb 15 14:47:54 PST 2012
Author: void
Date: Wed Feb 15 16:47:53 2012
New Revision: 150628
URL: http://llvm.org/viewvc/llvm-project?rev=150628&view=rev
Log:
Use 'getDataNoRel' for the section kind.
Modified:
llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
Modified: llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp?rev=150628&r1=150627&r2=150628&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (original)
+++ llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp Wed Feb 15 16:47:53 2012
@@ -410,16 +410,15 @@
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")));
More information about the llvm-commits
mailing list