aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-07-13 21:48:26 +0000
committerDevang Patel <dpatel@apple.com>2009-07-13 21:48:26 +0000
commit03cc004a76b1504ea0b11feaab1e026e77eaaf55 (patch)
tree7dfcbbbe054ee3103f66d65848dca82699ce9254 /include
parent1cfc6b415a9ff2a945ebd436af5189d1d82467d5 (diff)
downloadexternal_llvm-03cc004a76b1504ea0b11feaab1e026e77eaaf55.zip
external_llvm-03cc004a76b1504ea0b11feaab1e026e77eaaf55.tar.gz
external_llvm-03cc004a76b1504ea0b11feaab1e026e77eaaf55.tar.bz2
Use AsmPrinter's Mangler to remove leading '1' from linkage names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 0129711..4e7ea13 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -242,7 +242,7 @@ namespace llvm {
/// special global used by LLVM. If so, emit it and return true, otherwise
/// do nothing and return false.
bool EmitSpecialLLVMGlobal(const GlobalVariable *GV);
-
+
public:
//===------------------------------------------------------------------===//
/// LEB 128 number encoding.
@@ -333,6 +333,10 @@ namespace llvm {
/// debug tables.
void printDeclare(const MachineInstr *MI) const;
+ /// getMangler - Return Mangler used by the AsmPrinter. This is used by
+ /// DWARF debug info generator.
+ Mangler *getMangler() { return Mang; }
+
/// postInstructionAction - Handling printing of items after the
/// instruction iteself has been printed (e.g. comments)
void postInstructionAction(const MachineInstr &MI) const {