forked from OSchip/llvm-project
parent
a47d096125
commit
abb4d9ed34
|
@ -591,7 +591,8 @@ CompileUnit *DwarfDebug::constructCompileUnit(const MDNode *N) {
|
|||
unsigned ID = GetOrCreateSourceID(FN, CompilationDir);
|
||||
|
||||
DIE *Die = new DIE(dwarf::DW_TAG_compile_unit);
|
||||
CompileUnit *NewCU = new CompileUnit(ID, DIUnit.getLanguage(), Die, Asm, this);
|
||||
CompileUnit *NewCU = new CompileUnit(ID, DIUnit.getLanguage(), Die,
|
||||
Asm, this);
|
||||
NewCU->addString(Die, dwarf::DW_AT_producer, DIUnit.getProducer());
|
||||
NewCU->addUInt(Die, dwarf::DW_AT_language, dwarf::DW_FORM_data2,
|
||||
DIUnit.getLanguage());
|
||||
|
|
Loading…
Reference in New Issue