diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-04 21:31:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-04 21:31:54 +0000 |
commit | f88dce1f89ddb30b2370318284a6b307d7a44a98 (patch) | |
tree | c13d392d6cfecafe0621f2ee7e1bf3f6c61760e2 /lib/CodeGen/AsmPrinter/DwarfException.cpp | |
parent | 0887fa0b8c966234025535d4adcbd5f562a3c0a5 (diff) |
eliminate the "isEH" argument to EmitSectionOffset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfException.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index 5c2bdb1678..b29e675afa 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -218,10 +218,10 @@ void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) { EHFrameInfo.Number)); Asm->OutStreamer.AddComment("FDE CIE offset"); - EmitSectionOffset(Asm->GetTempSymbol("eh_frame_begin", EHFrameInfo.Number), - Asm->GetTempSymbol("eh_frame_common", - EHFrameInfo.PersonalityIndex), - true, true); + Asm->EmitLabelDifference( + Asm->GetTempSymbol("eh_frame_begin", EHFrameInfo.Number), + Asm->GetTempSymbol("eh_frame_common", + EHFrameInfo.PersonalityIndex), 4); MCSymbol *EHFuncBeginSym = Asm->GetTempSymbol("eh_func_begin", EHFrameInfo.Number); @@ -811,7 +811,7 @@ void DwarfException::EmitExceptionTable() { // number of 16-byte bundles. The first call site is counted relative to // the start of the procedure fragment. Asm->OutStreamer.AddComment("Region start"); - EmitSectionOffset(BeginLabel, EHFuncBeginSym, true, true); + Asm->EmitLabelDifference(BeginLabel, EHFuncBeginSym, 4); Asm->OutStreamer.AddComment("Region length"); Asm->EmitLabelDifference(EndLabel, BeginLabel, 4); @@ -823,7 +823,7 @@ void DwarfException::EmitExceptionTable() { if (!S.PadLabel) Asm->OutStreamer.EmitIntValue(0, 4/*size*/, 0/*addrspace*/); else - EmitSectionOffset(S.PadLabel, EHFuncBeginSym, true, true); + Asm->EmitLabelDifference(S.PadLabel, EHFuncBeginSym, 4); // Offset of the first associated action record, relative to the start of // the action table. This value is biased by 1 (1 indicates the start of |