[llvm-commits] [llvm] r94413 - in /llvm/trunk: include/llvm/MC/MCAsmInfo.h lib/MC/MCAsmInfo.cpp lib/MC/MCAsmStreamer.cpp
Chris Lattner
sabre at nondot.org
Sun Jan 24 23:29:13 PST 2010
Author: lattner
Date: Mon Jan 25 01:29:13 2010
New Revision: 94413
URL: http://llvm.org/viewvc/llvm-project?rev=94413&view=rev
Log:
all supported target now have aligned common support.
Modified:
llvm/trunk/include/llvm/MC/MCAsmInfo.h
llvm/trunk/lib/MC/MCAsmInfo.cpp
llvm/trunk/lib/MC/MCAsmStreamer.cpp
Modified: llvm/trunk/include/llvm/MC/MCAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCAsmInfo.h?rev=94413&r1=94412&r2=94413&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCAsmInfo.h (original)
+++ llvm/trunk/include/llvm/MC/MCAsmInfo.h Mon Jan 25 01:29:13 2010
@@ -195,10 +195,6 @@
/// directive.
bool HasLCOMMDirective; // Defaults to false.
- /// COMMDirectiveTakesAlignment - True if COMMDirective take a third
- /// argument that specifies the alignment of the declaration.
- bool COMMDirectiveTakesAlignment; // Defaults to true.
-
/// HasDotTypeDotSizeDirective - True if the target has .type and .size
/// directives, this is true for most ELF targets.
bool HasDotTypeDotSizeDirective; // Defaults to true.
@@ -400,9 +396,6 @@
return SetDirective;
}
bool hasLCOMMDirective() const { return HasLCOMMDirective; }
- bool getCOMMDirectiveTakesAlignment() const {
- return COMMDirectiveTakesAlignment;
- }
bool hasDotTypeDotSizeDirective() const {return HasDotTypeDotSizeDirective;}
bool hasSingleParameterDotFile() const { return HasSingleParameterDotFile; }
bool hasNoDeadStrip() const { return HasNoDeadStrip; }
Modified: llvm/trunk/lib/MC/MCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmInfo.cpp?rev=94413&r1=94412&r2=94413&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAsmInfo.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmInfo.cpp Mon Jan 25 01:29:13 2010
@@ -53,7 +53,6 @@
GlobalDirective = "\t.globl\t";
SetDirective = 0;
HasLCOMMDirective = false;
- COMMDirectiveTakesAlignment = true;
HasDotTypeDotSizeDirective = true;
HasSingleParameterDotFile = true;
HasNoDeadStrip = false;
Modified: llvm/trunk/lib/MC/MCAsmStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmStreamer.cpp?rev=94413&r1=94412&r2=94413&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAsmStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmStreamer.cpp Mon Jan 25 01:29:13 2010
@@ -254,7 +254,7 @@
void MCAsmStreamer::EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
unsigned ByteAlignment) {
OS << "\t.comm\t" << *Symbol << ',' << Size;
- if (ByteAlignment != 0 && MAI.getCOMMDirectiveTakesAlignment()) {
+ if (ByteAlignment != 0) {
if (MAI.getAlignmentIsInBytes())
OS << ',' << ByteAlignment;
else
More information about the llvm-commits
mailing list