aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-09-20 02:19:49 +0000
committerBill Wendling <isanbard@gmail.com>2009-09-20 02:19:49 +0000
commit5511ffd763c6de8264de7bdf318564fee2bbfc99 (patch)
tree877c3dac134376e84cb4506d4a5dbb00e7721209 /lib/CodeGen/AsmPrinter/DwarfException.cpp
parenta80e9598caa568bfd56a6eb90cf4207c4752915d (diff)
Here's fun! It turns out that these filter functions can be internal. If they're
internal, they shouldn't use the indirect pointer stuff. In the case of throw_rethrow_test, it was marked as 'internal' and calculated its own offset to its contents. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfException.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp
index d6000e66f0..ebe54102d6 100644
--- a/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -906,7 +906,8 @@ void DwarfException::EmitExceptionTable() {
const GlobalVariable *TI = *I;
if (TI) {
- if (TTypeFormat == dwarf::DW_EH_PE_absptr) {
+ if (TTypeFormat == dwarf::DW_EH_PE_absptr ||
+ TI->getLinkage() == GlobalValue::InternalLinkage) {
// Print out the unadorned name of the type info.
PrintRelDirective();
O << Asm->Mang->getMangledName(TI);