diff options
author | Chris Lattner <sabre@nondot.org> | 2011-04-26 06:14:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-04-26 06:14:13 +0000 |
commit | 189ca1498f0f97f0e728a1716edf574a04226bea (patch) | |
tree | a3bd4cc7acbf7718cd0521a69ebd07b7ea0e0964 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 68d2218978b922bbb77ffca62c44daea73d1ae37 (diff) | |
download | bcm5719-llvm-189ca1498f0f97f0e728a1716edf574a04226bea.tar.gz bcm5719-llvm-189ca1498f0f97f0e728a1716edf574a04226bea.zip |
don't emit the symbol name twice for local bss and common
symbols. For example, don't emit:
.comm _i,4,2 ## @i
## @i
instead emit:
.comm _i,4,2 ## @i
llvm-svn: 130192
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index e4bd5a4b220..b605de2b875 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -289,12 +289,6 @@ void AsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) { if (GVKind.isCommon() || GVKind.isBSSLocal()) { if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it. - if (isVerbose()) { - WriteAsOperand(OutStreamer.GetCommentOS(), GV, - /*PrintType=*/false, GV->getParent()); - OutStreamer.GetCommentOS() << '\n'; - } - // Handle common symbols. if (GVKind.isCommon()) { unsigned Align = 1 << AlignLog; |