mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-06 01:24:35 +00:00
Record the DWARF version in MCContext
Record the DWARF version in MCContext, and use it when emitting the dwarf version into the debug info. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -645,8 +645,8 @@ static void EmitGenDwarfInfo(MCStreamer *MCOS,
|
||||
const MCExpr *Length = MakeStartMinusEndExpr(*MCOS, *InfoStart, *InfoEnd, 4);
|
||||
MCOS->EmitAbsValue(Length, 4);
|
||||
|
||||
// The 2 byte DWARF version, which is 2.
|
||||
MCOS->EmitIntValue(2, 2);
|
||||
// The 2 byte DWARF version.
|
||||
MCOS->EmitIntValue(context.getDwarfVersion(), 2);
|
||||
|
||||
// The 4 byte offset to the debug abbrevs from the start of the .debug_abbrev,
|
||||
// it is at the start of that section so this is zero.
|
||||
|
Reference in New Issue
Block a user