summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-23 07:47:02 +0000
committerChris Lattner <sabre@nondot.org>2010-01-23 07:47:02 +0000
commit9eb158d5b4cd4f6fc80912e2dd77bdf13c3ca0e7 (patch)
treee51fc5dd2d8b42749fd516f3cae3457155d767ca /lib/CodeGen
parentf9f93e4388962b678fd59b7af5212d4cc0d38be2 (diff)
downloadllvm-9eb158d5b4cd4f6fc80912e2dd77bdf13c3ca0e7.tar.gz
llvm-9eb158d5b4cd4f6fc80912e2dd77bdf13c3ca0e7.tar.bz2
llvm-9eb158d5b4cd4f6fc80912e2dd77bdf13c3ca0e7.tar.xz
mcize lcomm, simplify .comm, extend both to support 64-bit sizes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94299 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index fc2c5a00da..f4d886492c 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -196,9 +196,9 @@ void AsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) {
return;
}
- if (const char *LComm = MAI->getLCOMMDirective()) {
+ if (MAI->hasLCOMMDirective()) {
// .lcomm _foo, 42
- O << LComm << *GVSym << ',' << Size << '\n';
+ OutStreamer.EmitLocalCommonSymbol(GVSym, Size);
return;
}