diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-15 23:11:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-15 23:11:32 +0000 |
commit | bfd1e50c4f51e5f22ba68f28172b0ed9ab66a61a (patch) | |
tree | c3feebf88808460651fc3e79031b61b24f7f90e5 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | f60d3eb186c2821f65d85b40665d602eb7d051f4 (diff) |
remove some horrible MAI hooks which fortunately turn out to be always empty.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 265a837822..745696cc87 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/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(); |