summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-09-11 17:20:55 +0000
committerBill Wendling <isanbard@gmail.com>2007-09-11 17:20:55 +0000
commit74fb0f1a1c7564b9a4919ba06ce6c7863e77a2d5 (patch)
tree31400ed668b0229c0720cae2acc8ce7057188cbe /llvm/lib/CodeGen
parent69c1b10993dfe721da90db5a23f00144ae7000ce (diff)
downloadbcm5719-llvm-74fb0f1a1c7564b9a4919ba06ce6c7863e77a2d5.tar.gz
bcm5719-llvm-74fb0f1a1c7564b9a4919ba06ce6c7863e77a2d5.zip
Add a bool to indicate if we should set the "indirect encoding" bit in the Dwarf
information for EH. llvm-svn: 41852
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index 2b4b4ce135f..cf6a922d23c 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud