forked from OSchip/llvm-project
Remove unused variable. Tweak a comment while there.
llvm-svn: 103586
This commit is contained in:
parent
8278a32802
commit
2576db727b
|
@ -205,10 +205,10 @@ void AsmPrinter::EmitLinkage(unsigned Linkage, MCSymbol *GVSym) const {
|
||||||
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_Global);
|
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_Global);
|
||||||
// .weak_definition _foo
|
// .weak_definition _foo
|
||||||
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_WeakDefinition);
|
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_WeakDefinition);
|
||||||
} else if (const char *LinkOnce = MAI->getLinkOnceDirective()) {
|
} else if (MAI->getLinkOnceDirective() != 0) {
|
||||||
// .globl _foo
|
// .globl _foo
|
||||||
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_Global);
|
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 {
|
} else {
|
||||||
// .weak _foo
|
// .weak _foo
|
||||||
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_Weak);
|
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_Weak);
|
||||||
|
|
Loading…
Reference in New Issue