diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-07-28 21:54:03 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-07-28 21:54:03 +0000 |
commit | c5800a809fd5e411de78ac1a4be633cd3e1d7840 (patch) | |
tree | 5eed7e90c39b378bb888193311b4acc4bf5870eb | |
parent | ac3126ebdd7fc8488a4a14aa72b2d95604f2fdf9 (diff) | |
download | external_llvm-c5800a809fd5e411de78ac1a4be633cd3e1d7840.zip external_llvm-c5800a809fd5e411de78ac1a4be633cd3e1d7840.tar.gz external_llvm-c5800a809fd5e411de78ac1a4be633cd3e1d7840.tar.bz2 |
Use the preferred EH data format for the preferred EH data format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77373 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfException.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index fdec97a..6a251be 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/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"); |