summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-15 23:38:51 +0000
committerChris Lattner <sabre@nondot.org>2010-01-15 23:38:51 +0000
commit7fec180909e91800288893960c4313e8fac2db66 (patch)
tree559d5d678ce1a33269ebfdd7a408dfd8bc56b0d9 /llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
parent10dd6e9ca574afcd9c576cce4a0485492540ccb0 (diff)
downloadbcm5719-llvm-7fec180909e91800288893960c4313e8fac2db66.tar.gz
bcm5719-llvm-7fec180909e91800288893960c4313e8fac2db66.zip
add a version of AsmPrinter::printVisibility that takes an MCSymbol.
llvm-svn: 93587
Diffstat (limited to 'llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
index 2f3dec42f87..5c596880e41 100644
--- a/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
@@ -49,7 +49,6 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormattedStream.h"
-#include "llvm/Support/Mangler.h"
#include "llvm/Support/MathExtras.h"
#include <cctype>
using namespace llvm;
@@ -1186,9 +1185,7 @@ void ARMAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) {
return;
}
- std::string Name = Mang->getMangledName(GVar);
MCSymbol *GVarSym = GetGlobalValueSymbol(GVar);
-
Constant *C = GVar->getInitializer();
const Type *Type = C->getType();
@@ -1196,7 +1193,7 @@ void ARMAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) {
unsigned Align = TD->getPreferredAlignmentLog(GVar);
bool isDarwin = Subtarget->isTargetDarwin();
- printVisibility(Name, GVar->getVisibility());
+ printVisibility(GVarSym, GVar->getVisibility());
if (Subtarget->isTargetELF()) {
O << "\t.type ";
OpenPOWER on IntegriCloud