aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-12-29 22:12:11 +0000
committerBill Wendling <isanbard@gmail.com>2008-12-29 22:12:11 +0000
commit998dee96d3ca506cf73a617c0b7fc7f0e467a127 (patch)
tree6381504f0bf349f29a4fe541486ce6ca458dab71 /lib/CodeGen/AsmPrinter/DwarfWriter.cpp
parentbce452815cffacb7bbccf994ae9d4defeb4af922 (diff)
Linux wants the FDE initial location and address range to be forced to 32-bit.
Darwin doesn't. Make this optional for platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfWriter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index 6534f401cc..691c922d0a 100644
--- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -3119,10 +3119,12 @@ private:
Asm->EOL("FDE CIE offset");
- EmitReference("eh_func_begin", EHFrameInfo.Number, true);
+ EmitReference("eh_func_begin", EHFrameInfo.Number, true,
+ TAI->doesRequire32BitFDEReference());
Asm->EOL("FDE initial location");
EmitDifference("eh_func_end", EHFrameInfo.Number,
- "eh_func_begin", EHFrameInfo.Number);
+ "eh_func_begin", EHFrameInfo.Number,
+ TAI->doesRequire32BitFDEReference());
Asm->EOL("FDE address range");
// If there is a personality and landing pads then point to the language