summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-04 21:31:54 +0000
committerChris Lattner <sabre@nondot.org>2010-04-04 21:31:54 +0000
commitc7cc8155225e91c12a05b366f0e9f2ca0eab2d75 (patch)
treeff1f244b6beada66adcfec17ca19d5851ee193c7
parente239fa05cd4d221439b6650a37391176c7bee3a0 (diff)
downloadbcm5719-llvm-c7cc8155225e91c12a05b366f0e9f2ca0eab2d75.tar.gz
bcm5719-llvm-c7cc8155225e91c12a05b366f0e9f2ca0eab2d75.zip
eliminate the "isEH" argument to EmitSectionOffset.
llvm-svn: 100355
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp12
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp9
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.h2
3 files changed, 9 insertions, 14 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
index 5c2bdb1678d..b29e675afaa 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/llvm/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
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
index b9664190806..495e1be58db 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp
@@ -39,13 +39,8 @@ DwarfPrinter::DwarfPrinter(AsmPrinter *A)
void DwarfPrinter::EmitSectionOffset(const MCSymbol *Label,
- const MCSymbol *Section,
- bool IsSmall, bool isEH) {
- bool isAbsolute;
- if (isEH)
- isAbsolute = false;
- else
- isAbsolute = MAI->isAbsoluteDebugSectionOffsets();
+ const MCSymbol *Section, bool IsSmall) {
+ bool isAbsolute = MAI->isAbsoluteDebugSectionOffsets();
if (!isAbsolute)
return Asm->EmitLabelDifference(Label, Section,
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.h b/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.h
index 1d4bc894ffa..54c4f0c8476 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfPrinter.h
@@ -77,7 +77,7 @@ public:
/// EmitSectionOffset - Emit Label-Section or use a special purpose directive
/// to emit a section offset if the target has one.
void EmitSectionOffset(const MCSymbol *Label, const MCSymbol *Section,
- bool IsSmall = false, bool isEH = false);
+ bool IsSmall = false);
/// EmitFrameMoves - Emit frame instructions to describe the layout of the
/// frame.
OpenPOWER on IntegriCloud