From 506eb6df35d5b32239f0afe7eeffc65d7bb7bd63 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 4 Feb 2014 18:34:04 +0000 Subject: [PATCH] Use the default values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200781 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 +- lib/MC/MCELFStreamer.cpp | 6 +++--- lib/MC/MCParser/DarwinAsmParser.cpp | 2 +- lib/MC/WinCOFFStreamer.cpp | 6 +++--- lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 4 ++-- lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index e7410d6efa4..68d79fec733 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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); } //===----------------------------------------------------------------------===// diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp index 142fdcdefab..9ff9665d52d 100644 --- a/lib/MC/MCELFStreamer.cpp +++ b/lib/MC/MCELFStreamer.cpp @@ -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()); } diff --git a/lib/MC/MCParser/DarwinAsmParser.cpp b/lib/MC/MCParser/DarwinAsmParser.cpp index 4c9bafa76ef..6d66e308e8c 100644 --- a/lib/MC/MCParser/DarwinAsmParser.cpp +++ b/lib/MC/MCParser/DarwinAsmParser.cpp @@ -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; } diff --git a/lib/MC/WinCOFFStreamer.cpp b/lib/MC/WinCOFFStreamer.cpp index 0cd4aa21a20..445d26106ad 100644 --- a/lib/MC/WinCOFFStreamer.cpp +++ b/lib/MC/WinCOFFStreamer.cpp @@ -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()); } diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 288d9b96da2..d3df3dc316a 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -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; } diff --git a/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp b/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp index 710f19a8632..5609f131801 100644 --- a/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp +++ b/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp @@ -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) { -- 2.34.1