mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-21 02:29:22 +00:00
Use the default values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b92cca2228
commit
506eb6df35
@ -1500,7 +1500,7 @@ void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV) const {
|
|||||||
if (getCurrentSection()->getKind().isText())
|
if (getCurrentSection()->getKind().isText())
|
||||||
OutStreamer.EmitCodeAlignment(1 << NumBits);
|
OutStreamer.EmitCodeAlignment(1 << NumBits);
|
||||||
else
|
else
|
||||||
OutStreamer.EmitValueToAlignment(1 << NumBits, 0, 1, 0);
|
OutStreamer.EmitValueToAlignment(1 << NumBits);
|
||||||
}
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
@ -42,13 +42,13 @@ void MCELFStreamer::InitSections(bool Force) {
|
|||||||
// This emulates the same behavior of GNU as. This makes it easier
|
// This emulates the same behavior of GNU as. This makes it easier
|
||||||
// to compare the output as the major sections are in the same order.
|
// to compare the output as the major sections are in the same order.
|
||||||
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
|
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
|
||||||
EmitCodeAlignment(4, 0);
|
EmitCodeAlignment(4);
|
||||||
|
|
||||||
SwitchSection(getContext().getObjectFileInfo()->getDataSection());
|
SwitchSection(getContext().getObjectFileInfo()->getDataSection());
|
||||||
EmitCodeAlignment(4, 0);
|
EmitCodeAlignment(4);
|
||||||
|
|
||||||
SwitchSection(getContext().getObjectFileInfo()->getBSSSection());
|
SwitchSection(getContext().getObjectFileInfo()->getBSSSection());
|
||||||
EmitCodeAlignment(4, 0);
|
EmitCodeAlignment(4);
|
||||||
|
|
||||||
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
|
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
|
||||||
}
|
}
|
||||||
|
@ -389,7 +389,7 @@ bool DarwinAsmParser::ParseSectionSwitch(const char *Segment,
|
|||||||
// is no good reason for someone to intentionally emit incorrectly sized
|
// is no good reason for someone to intentionally emit incorrectly sized
|
||||||
// values into the implicitly aligned sections.
|
// values into the implicitly aligned sections.
|
||||||
if (Align)
|
if (Align)
|
||||||
getStreamer().EmitValueToAlignment(Align, 0, 1, 0);
|
getStreamer().EmitValueToAlignment(Align);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -128,13 +128,13 @@ void WinCOFFStreamer::InitSections(bool Force) {
|
|||||||
// This emulates the same behavior of GNU as. This makes it easier
|
// This emulates the same behavior of GNU as. This makes it easier
|
||||||
// to compare the output as the major sections are in the same order.
|
// to compare the output as the major sections are in the same order.
|
||||||
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
|
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
|
||||||
EmitCodeAlignment(4, 0);
|
EmitCodeAlignment(4);
|
||||||
|
|
||||||
SwitchSection(getContext().getObjectFileInfo()->getDataSection());
|
SwitchSection(getContext().getObjectFileInfo()->getDataSection());
|
||||||
EmitCodeAlignment(4, 0);
|
EmitCodeAlignment(4);
|
||||||
|
|
||||||
SwitchSection(getContext().getObjectFileInfo()->getBSSSection());
|
SwitchSection(getContext().getObjectFileInfo()->getBSSSection());
|
||||||
EmitCodeAlignment(4, 0);
|
EmitCodeAlignment(4);
|
||||||
|
|
||||||
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
|
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
|
||||||
}
|
}
|
||||||
|
@ -8784,9 +8784,9 @@ bool ARMAsmParser::parseDirectiveEven(SMLoc L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Section->UseCodeAlign())
|
if (Section->UseCodeAlign())
|
||||||
getStreamer().EmitCodeAlignment(2, 0);
|
getStreamer().EmitCodeAlignment(2);
|
||||||
else
|
else
|
||||||
getStreamer().EmitValueToAlignment(2, 0, 1, 0);
|
getStreamer().EmitValueToAlignment(2);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1034,7 +1034,7 @@ inline void ARMELFStreamer::SwitchToEHSection(const char *Prefix,
|
|||||||
|
|
||||||
// Switch to .ARM.extab or .ARM.exidx section
|
// Switch to .ARM.extab or .ARM.exidx section
|
||||||
SwitchSection(EHSection);
|
SwitchSection(EHSection);
|
||||||
EmitCodeAlignment(4, 0);
|
EmitCodeAlignment(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void ARMELFStreamer::SwitchToExTabSection(const MCSymbol &FnStart) {
|
inline void ARMELFStreamer::SwitchToExTabSection(const MCSymbol &FnStart) {
|
||||||
|
Loading…
Reference in New Issue
Block a user