diff options
author | Duncan Sands <baldrick@free.fr> | 2010-05-12 07:11:33 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-05-12 07:11:33 +0000 |
commit | 2576db727bf98795227e6fbe389149df3044b424 (patch) | |
tree | e40d47b31d198feb82eb7c146fcc8a79523ef40f /llvm | |
parent | 8278a328020145a379bb29fee527cf3e806df813 (diff) | |
download | bcm5719-llvm-2576db727bf98795227e6fbe389149df3044b424.tar.gz bcm5719-llvm-2576db727bf98795227e6fbe389149df3044b424.zip |
Remove unused variable. Tweak a comment while there.
llvm-svn: 103586
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index a330843db45..bd7d0e5324a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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); |