[llvm-commits] [llvm] r56584 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Sep 24 15:21:04 PDT 2008
Author: asl
Date: Wed Sep 24 17:21:04 2008
New Revision: 56584
URL: http://llvm.org/viewvc/llvm-project?rev=56584&view=rev
Log:
Use helper
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=56584&r1=56583&r2=56584&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Wed Sep 24 17:21:04 2008
@@ -185,7 +185,7 @@
const GlobalValue *GV = cast<GlobalValue>(I->getAliasedGlobal());
Target = Mang->getValueName(GV);
-
+
if (I->hasExternalLinkage() || !TAI->getWeakRefDirective())
O << "\t.globl\t" << Name << '\n';
else if (I->hasWeakLinkage())
@@ -193,13 +193,7 @@
else if (!I->hasInternalLinkage())
assert(0 && "Invalid alias linkage");
- if (I->hasHiddenVisibility()) {
- if (const char *Directive = TAI->getHiddenDirective())
- O << Directive << Name << '\n';
- } else if (I->hasProtectedVisibility()) {
- if (const char *Directive = TAI->getProtectedDirective())
- O << Directive << Name << '\n';
- }
+ printVisibility(Name, I->getVisibility());
O << TAI->getSetDirective() << ' ' << Name << ", " << Target << '\n';
More information about the llvm-commits
mailing list