1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Use the default values.

llvm-svn: 200781
This commit is contained in:
Rafael Espindola 2014-02-04 18:34:04 +00:00
parent a6dfad28da
commit 32330211d3
6 changed files with 11 additions and 11 deletions

View File

@ -1500,7 +1500,7 @@ void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV) const {
if (getCurrentSection()->getKind().isText())
OutStreamer.EmitCodeAlignment(1 << NumBits);
else
OutStreamer.EmitValueToAlignment(1 << NumBits, 0, 1, 0);
OutStreamer.EmitValueToAlignment(1 << NumBits);
}
//===----------------------------------------------------------------------===//

View File

@ -42,13 +42,13 @@ void MCELFStreamer::InitSections(bool Force) {
// 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.
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
EmitCodeAlignment(4, 0);
EmitCodeAlignment(4);
SwitchSection(getContext().getObjectFileInfo()->getDataSection());
EmitCodeAlignment(4, 0);
EmitCodeAlignment(4);
SwitchSection(getContext().getObjectFileInfo()->getBSSSection());
EmitCodeAlignment(4, 0);
EmitCodeAlignment(4);
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
}

View File

@ -389,7 +389,7 @@ bool DarwinAsmParser::ParseSectionSwitch(const char *Segment,
// is no good reason for someone to intentionally emit incorrectly sized
// values into the implicitly aligned sections.
if (Align)
getStreamer().EmitValueToAlignment(Align, 0, 1, 0);
getStreamer().EmitValueToAlignment(Align);
return false;
}

View File

@ -128,13 +128,13 @@ void WinCOFFStreamer::InitSections(bool Force) {
// 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.
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
EmitCodeAlignment(4, 0);
EmitCodeAlignment(4);
SwitchSection(getContext().getObjectFileInfo()->getDataSection());
EmitCodeAlignment(4, 0);
EmitCodeAlignment(4);
SwitchSection(getContext().getObjectFileInfo()->getBSSSection());
EmitCodeAlignment(4, 0);
EmitCodeAlignment(4);
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
}

View File

@ -8784,9 +8784,9 @@ bool ARMAsmParser::parseDirectiveEven(SMLoc L) {
}
if (Section->UseCodeAlign())
getStreamer().EmitCodeAlignment(2, 0);
getStreamer().EmitCodeAlignment(2);
else
getStreamer().EmitValueToAlignment(2, 0, 1, 0);
getStreamer().EmitValueToAlignment(2);
return false;
}

View File

@ -1034,7 +1034,7 @@ inline void ARMELFStreamer::SwitchToEHSection(const char *Prefix,
// Switch to .ARM.extab or .ARM.exidx section
SwitchSection(EHSection);
EmitCodeAlignment(4, 0);
EmitCodeAlignment(4);
}
inline void ARMELFStreamer::SwitchToExTabSection(const MCSymbol &FnStart) {