[llvm-commits] [llvm] r103586 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Duncan Sands baldrick at free.fr
Wed May 12 00:11:33 PDT 2010


Author: baldrick
Date: Wed May 12 02:11:33 2010
New Revision: 103586

URL: http://llvm.org/viewvc/llvm-project?rev=103586&view=rev
Log:
Remove unused variable.  Tweak a comment while there.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=103586&r1=103585&r2=103586&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Wed May 12 02:11:33 2010
@@ -205,10 +205,10 @@
       OutStreamer.EmitSymbolAttribute(GVSym, MCSA_Global);
       // .weak_definition _foo
       OutStreamer.EmitSymbolAttribute(GVSym, MCSA_WeakDefinition);
-    } else if (const char *LinkOnce = MAI->getLinkOnceDirective()) {
+    } else if (MAI->getLinkOnceDirective() != 0) {
       // .globl _foo
       OutStreamer.EmitSymbolAttribute(GVSym, MCSA_Global);
-      //NOTE: linkonce is handling by the section the symbol was assigned to
+      //NOTE: linkonce is handled by the section the symbol was assigned to.
     } else {
       // .weak _foo
       OutStreamer.EmitSymbolAttribute(GVSym, MCSA_Weak);





More information about the llvm-commits mailing list