Remove unused variable. Tweak a comment while there.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / AsmPrinter.cpp
index a330843db45bc3d599043f99b55764f3feee1bd7..bd7d0e5324a3cfd01866548b21ffa0548765d81f 100644 (file)
@@ -205,10 +205,10 @@ void AsmPrinter::EmitLinkage(unsigned Linkage, MCSymbol *GVSym) const {
       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);