summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmInfoDarwin.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-09-07 21:08:01 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-09-07 21:08:01 +0000
commit68b9f0583f6af28c4912367899e4156edee3c3d0 (patch)
treed21d85fdc8f62496a06b06fd2fb3c34f8e933bc3 /llvm/lib/MC/MCAsmInfoDarwin.cpp
parent2c39b77f894579c367e8b4dd640193a7d92aa876 (diff)
downloadbcm5719-llvm-68b9f0583f6af28c4912367899e4156edee3c3d0.tar.gz
bcm5719-llvm-68b9f0583f6af28c4912367899e4156edee3c3d0.zip
Fix alignment of .comm and .lcomm on mingw32.
For some reason .lcomm uses byte alignment and .comm log2 alignment so we can't use the same setting for both. Fix this by reintroducing the LCOMM enum. I verified this against mingw's gcc. llvm-svn: 163420
Diffstat (limited to 'llvm/lib/MC/MCAsmInfoDarwin.cpp')
-rw-r--r--llvm/lib/MC/MCAsmInfoDarwin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp
index 99520d4bf9a..a0e3ebad5e2 100644
--- a/llvm/lib/MC/MCAsmInfoDarwin.cpp
+++ b/llvm/lib/MC/MCAsmInfoDarwin.cpp
@@ -32,7 +32,7 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
AlignmentIsInBytes = false;
COMMDirectiveAlignmentIsInBytes = false;
- LCOMMDirectiveSupportsAlignment = true;
+ LCOMMDirectiveAlignmentType = LCOMM::Log2Alignment;
InlineAsmStart = " InlineAsm Start";
InlineAsmEnd = " InlineAsm End";
OpenPOWER on IntegriCloud