Reorder language in the CompileUnit description and add a comment.

Language may only be a temporary addition.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195296 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher
2013-11-21 01:14:00 +00:00
parent 76ef8af358
commit bd355a033e
2 changed files with 7 additions and 6 deletions

View File

@ -40,16 +40,16 @@ static cl::opt<bool> GenerateTypeUnits("generate-type-units", cl::Hidden,
/// CompileUnit - Compile unit constructor.
CompileUnit::CompileUnit(unsigned UID, DIE *D, DICompileUnit Node,
AsmPrinter *A, DwarfDebug *DW, DwarfUnits *DWU)
: UniqueID(UID), Node(Node), CUDie(D), Asm(A), DD(DW), DU(DWU),
IndexTyDie(0), Language(Node.getLanguage()), DebugInfoOffset(0) {
: UniqueID(UID), Node(Node), Language(Node.getLanguage()), CUDie(D), Asm(A),
DD(DW), DU(DWU), IndexTyDie(0), DebugInfoOffset(0) {
DIEIntegerOne = new (DIEValueAllocator) DIEInteger(1);
insertDIE(Node, D);
}
CompileUnit::CompileUnit(unsigned UID, DIE *D, uint16_t Language, AsmPrinter *A,
DwarfDebug *DD, DwarfUnits *DU)
: UniqueID(UID), Node(NULL), CUDie(D), Asm(A), DD(DD), DU(DU),
IndexTyDie(0), Language(Language), DebugInfoOffset(0) {
: UniqueID(UID), Node(NULL), Language(Language), CUDie(D), Asm(A), DD(DD),
DU(DU), IndexTyDie(0), DebugInfoOffset(0) {
DIEIntegerOne = new (DIEValueAllocator) DIEInteger(1);
}