mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Use 'getDataNoRel' for the section kind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -410,16 +410,15 @@ emitModuleFlags(MCStreamer &Streamer,
|
|||||||
std::string ErrorCode =
|
std::string ErrorCode =
|
||||||
MCSectionMachO::ParseSectionSpecifier(SectionVal, Segment, Section,
|
MCSectionMachO::ParseSectionSpecifier(SectionVal, Segment, Section,
|
||||||
TAA, TAAParsed, StubSize);
|
TAA, TAAParsed, StubSize);
|
||||||
if (!ErrorCode.empty()) {
|
if (!ErrorCode.empty())
|
||||||
// If invalid, report the error with report_fatal_error.
|
// If invalid, report the error with report_fatal_error.
|
||||||
report_fatal_error("Invalid section specifier '" +
|
report_fatal_error("Invalid section specifier '" + Section + "': " +
|
||||||
Section + "': " + ErrorCode + ".");
|
ErrorCode + ".");
|
||||||
}
|
|
||||||
|
|
||||||
// Get the section.
|
// Get the section.
|
||||||
const MCSectionMachO *S =
|
const MCSectionMachO *S =
|
||||||
getContext().getMachOSection(Segment, Section, TAA, StubSize,
|
getContext().getMachOSection(Segment, Section, TAA, StubSize,
|
||||||
SectionKind::getDataRel());
|
SectionKind::getDataNoRel());
|
||||||
Streamer.SwitchSection(S);
|
Streamer.SwitchSection(S);
|
||||||
Streamer.EmitLabel(getContext().
|
Streamer.EmitLabel(getContext().
|
||||||
GetOrCreateSymbol(StringRef("L_OBJC_IMAGE_INFO")));
|
GetOrCreateSymbol(StringRef("L_OBJC_IMAGE_INFO")));
|
||||||
|
Reference in New Issue
Block a user