mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Remove extra bytes that were added for gdb. We do not have good poiner to understand actual reason behind this fixme. Spot checking suggest that newer gdb does not need this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129461 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b90e1d5aaf
commit
65705d559a
@ -2375,8 +2375,7 @@ void DwarfDebug::emitDebugInfo() {
|
||||
unsigned ContentSize = Die->getSize() +
|
||||
sizeof(int16_t) + // DWARF version number
|
||||
sizeof(int32_t) + // Offset Into Abbrev. Section
|
||||
sizeof(int8_t) + // Pointer Size (in bytes)
|
||||
sizeof(int32_t); // FIXME - extra pad for gdb bug.
|
||||
sizeof(int8_t); // Pointer Size (in bytes)
|
||||
|
||||
Asm->OutStreamer.AddComment("Length of Compilation Unit Info");
|
||||
Asm->EmitInt32(ContentSize);
|
||||
@ -2389,12 +2388,6 @@ void DwarfDebug::emitDebugInfo() {
|
||||
Asm->EmitInt8(Asm->getTargetData().getPointerSize());
|
||||
|
||||
emitDIE(Die);
|
||||
// FIXME - extra padding for gdb bug.
|
||||
Asm->OutStreamer.AddComment("4 extra padding bytes for GDB");
|
||||
Asm->EmitInt8(0);
|
||||
Asm->EmitInt8(0);
|
||||
Asm->EmitInt8(0);
|
||||
Asm->EmitInt8(0);
|
||||
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("info_end", TheCU->getID()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user