diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-09-11 17:20:55 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-09-11 17:20:55 +0000 |
commit | ef4a661725716c60b49c40eed5225cac52f877e9 (patch) | |
tree | 6764d809a3b2b39aba0e03a8c8c29478a7018217 /lib/CodeGen | |
parent | 95bb69acbcec9a2e162875e7a940ccede90fd3f9 (diff) |
Add a bool to indicate if we should set the "indirect encoding" bit in the Dwarf
information for EH.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/DwarfWriter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index 2b4b4ce135..cf6a922d23 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/lib/CodeGen/DwarfWriter.cpp @@ -2789,7 +2789,12 @@ private: if (Personality) { Asm->EmitULEB128Bytes(7); Asm->EOL("Augmentation Size"); - Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4 | DW_EH_PE_indirect); + + if (TAI->getNeedsIndirectEncoding()) + Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4 | DW_EH_PE_indirect); + else + Asm->EmitInt8(DW_EH_PE_pcrel | DW_EH_PE_sdata4); + Asm->EOL("Personality (pcrel sdata4 indirect)"); PrintRelDirective(); |