aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-16 00:17:39 +0000
committerChris Lattner <sabre@nondot.org>2009-09-16 00:17:39 +0000
commit1c90c6f1c530e22aea5be055004b2517e77a0f02 (patch)
tree816d76b3ac25490cf4488f47d417b97e96cd6f48 /lib/CodeGen/AsmPrinter/DwarfException.cpp
parent1633076c47f10a8d8735e81588e9cb07ac32efc8 (diff)
Eliminate AsmPrinter::EmitExternalGlobal, inlining its (now)
one implementation into its one caller. This eliminates a totally awesome and gratuitous hack where we casted a Function* to GlobalVariable*. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81967 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfException.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp
index abd2e6fe80..f8e8009cd0 100644
--- a/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -163,7 +163,7 @@ void DwarfException::EmitCIE(const Function *Personality, unsigned Index) {
O << MAI->getData32bitsDirective();
O << MAI->getPersonalityPrefix();
- Asm->EmitExternalGlobal((const GlobalVariable *)(Personality));
+ O << Asm->Mang->getMangledName(Personality);
O << MAI->getPersonalitySuffix();
if (strcmp(MAI->getPersonalitySuffix(), "+4@GOTPCREL"))