summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-15 23:11:32 +0000
committerChris Lattner <sabre@nondot.org>2009-09-15 23:11:32 +0000
commit2251293788b58e1e351c334e60e02cc5c9eb67f0 (patch)
tree9733a7508841da0431f63378594ec1577757da1a /llvm/lib/CodeGen
parente18856dad18bbe7cd0eec4aba7f6b120b8a1c1a7 (diff)
downloadbcm5719-llvm-2251293788b58e1e351c334e60e02cc5c9eb67f0.tar.gz
bcm5719-llvm-2251293788b58e1e351c334e60e02cc5c9eb67f0.zip
remove some horrible MAI hooks which fortunately turn out to be always empty.
llvm-svn: 81946
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp25
1 files changed, 3 insertions, 22 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 265a837822f..745696cc879 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -514,16 +514,7 @@ void AsmPrinter::EmitXXStructorList(Constant *List) {
/// generate the appropriate value.
const std::string &AsmPrinter::getGlobalLinkName(const GlobalVariable *GV,
std::string &LinkName) const {
- if (isa<Function>(GV)) {
- LinkName += MAI->getFunctionAddrPrefix();
- LinkName += Mang->getMangledName(GV);
- LinkName += MAI->getFunctionAddrSuffix();
- } else {
- LinkName += MAI->getGlobalVarAddrPrefix();
- LinkName += Mang->getMangledName(GV);
- LinkName += MAI->getGlobalVarAddrSuffix();
- }
-
+ LinkName += Mang->getMangledName(GV);
return LinkName;
}
@@ -838,18 +829,8 @@ void AsmPrinter::EmitConstantValueOnly(const Constant *CV) {
O << CI->getZExtValue();
} else if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV)) {
// This is a constant address for a global variable or function. Use the
- // name of the variable or function as the address value, possibly
- // decorating it with GlobalVarAddrPrefix/Suffix or
- // FunctionAddrPrefix/Suffix (these all default to "" )
- if (isa<Function>(GV)) {
- O << MAI->getFunctionAddrPrefix()
- << Mang->getMangledName(GV)
- << MAI->getFunctionAddrSuffix();
- } else {
- O << MAI->getGlobalVarAddrPrefix()
- << Mang->getMangledName(GV)
- << MAI->getGlobalVarAddrSuffix();
- }
+ // name of the variable or function as the address value.
+ O << Mang->getMangledName(GV);
} else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(CV)) {
const TargetData *TD = TM.getTargetData();
unsigned Opcode = CE->getOpcode();
OpenPOWER on IntegriCloud