mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
Add comments for previous patch as requested.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50463 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2876,6 +2876,9 @@ private:
|
|||||||
RI->getInitialFrameState(Moves);
|
RI->getInitialFrameState(Moves);
|
||||||
EmitFrameMoves(NULL, 0, Moves, true);
|
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,
|
Asm->EmitAlignment(TD->getPointerSize() == sizeof(int32_t) ? 2 : 3,
|
||||||
0, 0, false);
|
0, 0, false);
|
||||||
EmitLabel("eh_frame_common_end", Index);
|
EmitLabel("eh_frame_common_end", Index);
|
||||||
@ -2966,6 +2969,9 @@ private:
|
|||||||
// frame.
|
// frame.
|
||||||
EmitFrameMoves("eh_func_begin", EHFrameInfo.Number, EHFrameInfo.Moves, true);
|
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,
|
Asm->EmitAlignment(TD->getPointerSize() == sizeof(int32_t) ? 2 : 3,
|
||||||
0, 0, false);
|
0, 0, false);
|
||||||
EmitLabel("eh_frame_end", EHFrameInfo.Number);
|
EmitLabel("eh_frame_end", EHFrameInfo.Number);
|
||||||
|
Reference in New Issue
Block a user