summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-07-28 21:54:03 +0000
committerBill Wendling <isanbard@gmail.com>2009-07-28 21:54:03 +0000
commit5196c9c7c9a6a920ff29d2e77a8ed5223aa08b1c (patch)
tree747a653b2c19c9e06b79eee0de411cc2312873c7 /llvm/lib/CodeGen
parent403990ad585aa7613317eadf6d4962b0cc85ba59 (diff)
downloadbcm5719-llvm-5196c9c7c9a6a920ff29d2e77a8ed5223aa08b1c.tar.gz
bcm5719-llvm-5196c9c7c9a6a920ff29d2e77a8ed5223aa08b1c.zip
Use the preferred EH data format for the preferred EH data format.
llvm-svn: 77373
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
index fdec97ac6ac..6a251beda28 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -520,14 +520,14 @@ void DwarfException::EmitExceptionTable() {
for (unsigned i = 0; i != SizeAlign; ++i) {
Asm->EmitInt8(0);
Asm->EOL("Padding");
- }
+ }
EmitLabel("exception", SubprogramCount);
// Emit the header.
Asm->EmitInt8(dwarf::DW_EH_PE_omit);
Asm->EOL("LPStart format (DW_EH_PE_omit)");
- Asm->EmitInt8(dwarf::DW_EH_PE_absptr);
+ Asm->EmitInt8(TAI->PreferredEHDataFormat(DwarfEncoding::Data, true));
Asm->EOL("TType format (DW_EH_PE_absptr)");
Asm->EmitULEB128Bytes(TypeOffset);
Asm->EOL("TType base offset");
OpenPOWER on IntegriCloud