@@ -466,7 +466,8 @@ void CGDebugInfo::CreateCompileUnit() {
466
466
// Create new compile unit.
467
467
// FIXME - Eliminate TheCU.
468
468
TheCU = DBuilder.createCompileUnit (
469
- LangTag, remapDIPath (MainFileName), remapDIPath (getCurrentDirname ()),
469
+ LangTag, DBuilder.createFile (remapDIPath (MainFileName),
470
+ remapDIPath (getCurrentDirname ())),
470
471
Producer, LO.Optimize , CGM.getCodeGenOpts ().DwarfDebugFlags , RuntimeVers,
471
472
CGM.getCodeGenOpts ().SplitDwarfFile , EmissionKind, 0 /* DWOid */ ,
472
473
CGM.getCodeGenOpts ().SplitDwarfInlining );
@@ -1977,10 +1978,11 @@ CGDebugInfo::getOrCreateModuleRef(ExternalASTSource::ASTSourceDescriptor Mod,
1977
1978
// but LLVM detects skeleton CUs by looking for a non-zero DWO id.
1978
1979
uint64_t Signature = Mod.getSignature () ? Mod.getSignature () : ~1ULL ;
1979
1980
llvm::DIBuilder DIB (CGM.getModule ());
1980
- DIB.createCompileUnit (TheCU->getSourceLanguage (), Mod.getModuleName (),
1981
- Mod.getPath (), TheCU->getProducer (), true ,
1982
- StringRef (), 0 , Mod.getASTFile (),
1983
- llvm::DICompileUnit::FullDebug, Signature);
1981
+ DIB.createCompileUnit (TheCU->getSourceLanguage (),
1982
+ DIB.createFile (Mod.getModuleName (), Mod.getPath ()),
1983
+ TheCU->getProducer (), true , StringRef (), 0 ,
1984
+ Mod.getASTFile (), llvm::DICompileUnit::FullDebug,
1985
+ Signature);
1984
1986
DIB.finalize ();
1985
1987
}
1986
1988
llvm::DIModule *Parent =
0 commit comments