diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-12-17 20:41:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-12-17 20:41:01 +0000 |
commit | 03b5aed7d85d772f74fc7da64fd486c8ebaad6e6 (patch) | |
tree | ee4993acbff271351f82fff33cd7e2963c595925 | |
parent | d3ab1074324c3dfe4aa93a1506fb6a1e8ec79e8f (diff) | |
download | bcm5719-llvm-03b5aed7d85d772f74fc7da64fd486c8ebaad6e6.tar.gz bcm5719-llvm-03b5aed7d85d772f74fc7da64fd486c8ebaad6e6.zip |
Temporarily revert 91337. It's causing testcase failures.
$ svn merge -c -91337 https://llvm.org/svn/llvm-project/llvm/trunk
--- Reverse-merging r91337 into '.':
U lib/CodeGen/AsmPrinter/DwarfException.cpp
llvm-svn: 91618
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index 3fd077f6873..1c8b8f46472 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -292,13 +292,14 @@ void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) { Asm->EmitULEB128Bytes(is4Byte ? 4 : 8); Asm->EOL("Augmentation size"); - // We force 32-bits here because we've encoded our LSDA in the CIE with - // `dwarf::DW_EH_PE_sdata4'. And the CIE and FDE should agree. if (EHFrameInfo.hasLandingPads) - EmitReference("exception", EHFrameInfo.Number, true, true); - else - Asm->EmitInt32((int)0); - + EmitReference("exception", EHFrameInfo.Number, true, false); + else { + if (is4Byte) + Asm->EmitInt32((int)0); + else + Asm->EmitInt64((int)0); + } Asm->EOL("Language Specific Data Area"); } else { Asm->EmitULEB128Bytes(0); |