summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-04-30 00:43:29 +0000
committerDale Johannesen <dalej@apple.com>2008-04-30 00:43:29 +0000
commitc110c4a5262aadcf4ba116ecab64452633d562b1 (patch)
tree5d638c78d0af17cfd6ef5ff35c78a37b4c33c526 /llvm/lib
parentc3a1910a07de283a7b26b67cbfa8ca06c044382a (diff)
downloadbcm5719-llvm-c110c4a5262aadcf4ba116ecab64452633d562b1.tar.gz
bcm5719-llvm-c110c4a5262aadcf4ba116ecab64452633d562b1.zip
Add comments for previous patch as requested.
llvm-svn: 50463
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index 74df79002f4..9e806fadcde 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/DwarfWriter.cpp
@@ -2876,6 +2876,9 @@ private:
RI->getInitialFrameState(Moves);
EmitFrameMoves(NULL, 0, Moves, true);
+ // On Darwin the linker honors the alignment of eh_frame, which means it
+ // must be 8-byte on 64-bit targets to match what gcc does. Otherwise
+ // you get holes which confuse readers of eh_frame.
Asm->EmitAlignment(TD->getPointerSize() == sizeof(int32_t) ? 2 : 3,
0, 0, false);
EmitLabel("eh_frame_common_end", Index);
@@ -2966,6 +2969,9 @@ private:
// frame.
EmitFrameMoves("eh_func_begin", EHFrameInfo.Number, EHFrameInfo.Moves, true);
+ // On Darwin the linker honors the alignment of eh_frame, which means it
+ // must be 8-byte on 64-bit targets to match what gcc does. Otherwise
+ // you get holes which confuse readers of eh_frame.
Asm->EmitAlignment(TD->getPointerSize() == sizeof(int32_t) ? 2 : 3,
0, 0, false);
EmitLabel("eh_frame_end", EHFrameInfo.Number);
OpenPOWER on IntegriCloud