all supported target now have aligned common support.
authorChris Lattner <sabre@nondot.org>
Mon, 25 Jan 2010 07:29:13 +0000 (07:29 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 25 Jan 2010 07:29:13 +0000 (07:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94413 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCAsmInfo.h
lib/MC/MCAsmInfo.cpp
lib/MC/MCAsmStreamer.cpp

index 5e31dfeb0dacf62847b5416633b1e7b8074c5f82..f499189a9064694b99d320ecc2e82b4208bd2c10 100644 (file)
@@ -195,10 +195,6 @@ namespace llvm {
     /// 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 @@ namespace llvm {
       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; }
index 547f904d70f47d727b14e3c5717544d967128ee8..c0ca7e9df9fd7f4e4d7eb6db18fb0153edf87143 100644 (file)
@@ -53,7 +53,6 @@ MCAsmInfo::MCAsmInfo() {
   GlobalDirective = "\t.globl\t";
   SetDirective = 0;
   HasLCOMMDirective = false;
-  COMMDirectiveTakesAlignment = true;
   HasDotTypeDotSizeDirective = true;
   HasSingleParameterDotFile = true;
   HasNoDeadStrip = false;
index bf39239e7a7b86acb786aaeb7d7aeadca17a95e6..0698bd4ea19007db2113cb3657bf0c4ee6bbcc54 100644 (file)
@@ -254,7 +254,7 @@ void MCAsmStreamer::EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) {
 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