summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorLogan Chien <tzuhsiang.chien@gmail.com>2014-05-30 16:48:56 +0000
committerLogan Chien <tzuhsiang.chien@gmail.com>2014-05-30 16:48:56 +0000
commit731d23ed42db0f876f0c9b2a3985637ef4ec8384 (patch)
treee08fa24608817b6b422f7d2c2b96e650cd3634c7 /lib/CodeGen/AsmPrinter
parentba735134d73c8df1aa2bb4f47cda962cc27e5e7f (diff)
downloadllvm-731d23ed42db0f876f0c9b2a3985637ef4ec8384.tar.gz
llvm-731d23ed42db0f876f0c9b2a3985637ef4ec8384.tar.bz2
llvm-731d23ed42db0f876f0c9b2a3985637ef4ec8384.tar.xz
Fix MIPS exception personality encoding.
For MIPS, we have to encode the personality routine with an indirect pointer to absptr; otherwise, some link warning warning will be raised, and the program might crash in some early MIPS Android device. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCFIException.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
index 30312ac2e2..b5e95cb262 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
@@ -59,7 +59,7 @@ void DwarfCFIException::endModule() {
unsigned PerEncoding = TLOF.getPersonalityEncoding();
- if ((PerEncoding & 0x70) != dwarf::DW_EH_PE_pcrel)
+ if ((PerEncoding & 0x80) != dwarf::DW_EH_PE_indirect)
return;
// Emit references to all used personality functions