[llvm-commits] [llvm] r163405 - /llvm/trunk/lib/MC/MCAsmInfoCOFF.cpp

Benjamin Kramer benny.kra at googlemail.com
Fri Sep 7 11:56:10 PDT 2012


Author: d0k
Date: Fri Sep  7 13:56:10 2012
New Revision: 163405

URL: http://llvm.org/viewvc/llvm-project?rev=163405&view=rev
Log:
Contrary to what the documentation says, .lcomm alignment on COFF is in bytes, not power of 2.

Modified:
    llvm/trunk/lib/MC/MCAsmInfoCOFF.cpp

Modified: llvm/trunk/lib/MC/MCAsmInfoCOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCAsmInfoCOFF.cpp?rev=163405&r1=163404&r2=163405&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCAsmInfoCOFF.cpp (original)
+++ llvm/trunk/lib/MC/MCAsmInfoCOFF.cpp Fri Sep  7 13:56:10 2012
@@ -19,7 +19,7 @@
 
 MCAsmInfoCOFF::MCAsmInfoCOFF() {
   GlobalPrefix = "_";
-  COMMDirectiveAlignmentIsInBytes = false;
+  COMMDirectiveAlignmentIsInBytes = true;
   LCOMMDirectiveSupportsAlignment = true;
   HasDotTypeDotSizeDirective = false;
   HasSingleParameterDotFile = false;





More information about the llvm-commits mailing list