factor some labels, simplify some code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98429 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-03-13 07:40:56 +00:00
parent 669f6b3bee
commit fb65807c34
3 changed files with 15 additions and 14 deletions
+4 -5
View File
@@ -2756,16 +2756,15 @@ emitFunctionDebugFrame(const FunctionDebugFrameInfo &DebugFrameInfo) {
getTempLabel("section_debug_frame"), true, false);
Asm->OutStreamer.AddComment("FDE initial location");
Asm->OutStreamer.EmitSymbolValue(getDWLabel("func_begin",
DebugFrameInfo.Number),
MCSymbol *FuncBeginSym = getDWLabel("func_begin", DebugFrameInfo.Number);
Asm->OutStreamer.EmitSymbolValue(FuncBeginSym,
TD->getPointerSize(), 0/*AddrSpace*/);
Asm->OutStreamer.AddComment("FDE address range");
EmitDifference(getDWLabel("func_end", DebugFrameInfo.Number),
getDWLabel("func_begin", DebugFrameInfo.Number));
EmitDifference(getDWLabel("func_end", DebugFrameInfo.Number), FuncBeginSym);
// FuncBeginSym.
EmitFrameMoves("func_begin", DebugFrameInfo.Number, DebugFrameInfo.Moves,
false);