diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-13 07:40:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-13 07:40:56 +0000 |
commit | 8811e123142230ee9db7ff30f10df5a87668f5de (patch) | |
tree | fe65c7e2ce3b634552f8de9b2e938b5476628ae0 /llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | |
parent | e5b2c1d9be148bce081c811537189926220758d3 (diff) | |
download | bcm5719-llvm-8811e123142230ee9db7ff30f10df5a87668f5de.tar.gz bcm5719-llvm-8811e123142230ee9db7ff30f10df5a87668f5de.zip |
factor some labels, simplify some code.
llvm-svn: 98429
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index 09fae287f7d..58ebafa1050 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -221,12 +221,13 @@ void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) { EHFrameInfo.PersonalityIndex), true, true); + MCSymbol *EHFuncBeginSym = getDWLabel("eh_func_begin", EHFrameInfo.Number); Asm->OutStreamer.AddComment("FDE initial location"); - EmitReference(getDWLabel("eh_func_begin", EHFrameInfo.Number), FDEEncoding); + EmitReference(EHFuncBeginSym, FDEEncoding); + Asm->OutStreamer.AddComment("FDE address range"); - EmitDifference(getDWLabel("eh_func_end", EHFrameInfo.Number), - getDWLabel("eh_func_begin", EHFrameInfo.Number), + EmitDifference(getDWLabel("eh_func_end", EHFrameInfo.Number),EHFuncBeginSym, SizeOfEncodedValue(FDEEncoding) == 4); // If there is a personality and landing pads then point to the language @@ -246,6 +247,7 @@ void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) { } // Indicate locations of function specific callee saved registers in frame. + // EHFuncBeginSym EmitFrameMoves("eh_func_begin", EHFrameInfo.Number, EHFrameInfo.Moves, true); |