mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Move DebugInfoOffset member near the other data member it helps describe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195299 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -40,16 +40,16 @@ static cl::opt<bool> GenerateTypeUnits("generate-type-units", cl::Hidden,
|
|||||||
/// CompileUnit - Compile unit constructor.
|
/// CompileUnit - Compile unit constructor.
|
||||||
CompileUnit::CompileUnit(unsigned UID, DIE *D, DICompileUnit Node,
|
CompileUnit::CompileUnit(unsigned UID, DIE *D, DICompileUnit Node,
|
||||||
AsmPrinter *A, DwarfDebug *DW, DwarfUnits *DWU)
|
AsmPrinter *A, DwarfDebug *DW, DwarfUnits *DWU)
|
||||||
: UniqueID(UID), Node(Node), Language(Node.getLanguage()), CUDie(D), Asm(A),
|
: UniqueID(UID), Node(Node), Language(Node.getLanguage()), CUDie(D),
|
||||||
DD(DW), DU(DWU), IndexTyDie(0), DebugInfoOffset(0) {
|
DebugInfoOffset(0), Asm(A), DD(DW), DU(DWU), IndexTyDie(0) {
|
||||||
DIEIntegerOne = new (DIEValueAllocator) DIEInteger(1);
|
DIEIntegerOne = new (DIEValueAllocator) DIEInteger(1);
|
||||||
insertDIE(Node, D);
|
insertDIE(Node, D);
|
||||||
}
|
}
|
||||||
|
|
||||||
CompileUnit::CompileUnit(unsigned UID, DIE *D, uint16_t Language, AsmPrinter *A,
|
CompileUnit::CompileUnit(unsigned UID, DIE *D, uint16_t Language, AsmPrinter *A,
|
||||||
DwarfDebug *DD, DwarfUnits *DU)
|
DwarfDebug *DD, DwarfUnits *DU)
|
||||||
: UniqueID(UID), Node(NULL), Language(Language), CUDie(D), Asm(A), DD(DD),
|
: UniqueID(UID), Node(NULL), Language(Language), CUDie(D),
|
||||||
DU(DU), IndexTyDie(0), DebugInfoOffset(0) {
|
DebugInfoOffset(0), Asm(A), DD(DD), DU(DU), IndexTyDie(0) {
|
||||||
DIEIntegerOne = new (DIEValueAllocator) DIEInteger(1);
|
DIEIntegerOne = new (DIEValueAllocator) DIEInteger(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,6 +47,9 @@ class CompileUnit {
|
|||||||
/// CUDie - Compile unit debug information entry.
|
/// CUDie - Compile unit debug information entry.
|
||||||
const OwningPtr<DIE> CUDie;
|
const OwningPtr<DIE> CUDie;
|
||||||
|
|
||||||
|
/// Offset of the CUDie from beginning of debug info section.
|
||||||
|
unsigned DebugInfoOffset;
|
||||||
|
|
||||||
/// Asm - Target of Dwarf emission.
|
/// Asm - Target of Dwarf emission.
|
||||||
AsmPrinter *Asm;
|
AsmPrinter *Asm;
|
||||||
|
|
||||||
@ -97,9 +100,6 @@ class CompileUnit {
|
|||||||
// DIEIntegerOne - A preallocated DIEValue because 1 is used frequently.
|
// DIEIntegerOne - A preallocated DIEValue because 1 is used frequently.
|
||||||
DIEInteger *DIEIntegerOne;
|
DIEInteger *DIEIntegerOne;
|
||||||
|
|
||||||
/// Offset of the CUDie from beginning of debug info section.
|
|
||||||
unsigned DebugInfoOffset;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CompileUnit(unsigned UID, DIE *D, DICompileUnit CU, AsmPrinter *A,
|
CompileUnit(unsigned UID, DIE *D, DICompileUnit CU, AsmPrinter *A,
|
||||||
DwarfDebug *DW, DwarfUnits *DWU);
|
DwarfDebug *DW, DwarfUnits *DWU);
|
||||||
|
Reference in New Issue
Block a user