|
@@ -340,8 +340,9 @@ TEST_F(IRBuilderTest, DIBuilder) {
|
|
IRBuilder<> Builder(BB);
|
|
IRBuilder<> Builder(BB);
|
|
DIBuilder DIB(*M);
|
|
DIBuilder DIB(*M);
|
|
auto File = DIB.createFile("F.CBL", "/");
|
|
auto File = DIB.createFile("F.CBL", "/");
|
|
- auto CU = DIB.createCompileUnit(dwarf::DW_LANG_Cobol74, "F.CBL", "/",
|
|
|
|
- "llvm-cobol74", true, "", 0);
|
|
|
|
|
|
+ auto CU = DIB.createCompileUnit(dwarf::DW_LANG_Cobol74,
|
|
|
|
+ DIB.createFile("F.CBL", "/"), "llvm-cobol74",
|
|
|
|
+ true, "", 0);
|
|
auto Type = DIB.createSubroutineType(DIB.getOrCreateTypeArray(None));
|
|
auto Type = DIB.createSubroutineType(DIB.getOrCreateTypeArray(None));
|
|
auto SP = DIB.createFunction(CU, "foo", "", File, 1, Type, false, true, 1,
|
|
auto SP = DIB.createFunction(CU, "foo", "", File, 1, Type, false, true, 1,
|
|
DINode::FlagZero, true);
|
|
DINode::FlagZero, true);
|
|
@@ -392,8 +393,9 @@ TEST_F(IRBuilderTest, DebugLoc) {
|
|
|
|
|
|
DIBuilder DIB(*M);
|
|
DIBuilder DIB(*M);
|
|
auto File = DIB.createFile("tmp.cpp", "/");
|
|
auto File = DIB.createFile("tmp.cpp", "/");
|
|
- auto CU = DIB.createCompileUnit(dwarf::DW_LANG_C_plus_plus_11, "tmp.cpp", "/",
|
|
|
|
- "", true, "", 0);
|
|
|
|
|
|
+ auto CU = DIB.createCompileUnit(dwarf::DW_LANG_C_plus_plus_11,
|
|
|
|
+ DIB.createFile("tmp.cpp", "/"), "", true, "",
|
|
|
|
+ 0);
|
|
auto SPType = DIB.createSubroutineType(DIB.getOrCreateTypeArray(None));
|
|
auto SPType = DIB.createSubroutineType(DIB.getOrCreateTypeArray(None));
|
|
auto SP =
|
|
auto SP =
|
|
DIB.createFunction(CU, "foo", "foo", File, 1, SPType, false, true, 1);
|
|
DIB.createFunction(CU, "foo", "foo", File, 1, SPType, false, true, 1);
|
|
@@ -422,8 +424,9 @@ TEST_F(IRBuilderTest, DebugLoc) {
|
|
TEST_F(IRBuilderTest, DIImportedEntity) {
|
|
TEST_F(IRBuilderTest, DIImportedEntity) {
|
|
IRBuilder<> Builder(BB);
|
|
IRBuilder<> Builder(BB);
|
|
DIBuilder DIB(*M);
|
|
DIBuilder DIB(*M);
|
|
- auto CU = DIB.createCompileUnit(dwarf::DW_LANG_Cobol74, "F.CBL", "/",
|
|
|
|
- "llvm-cobol74", true, "", 0);
|
|
|
|
|
|
+ auto CU = DIB.createCompileUnit(dwarf::DW_LANG_Cobol74,
|
|
|
|
+ DIB.createFile("F.CBL", "/"), "llvm-cobol74",
|
|
|
|
+ true, "", 0);
|
|
DIB.createImportedDeclaration(CU, nullptr, 1);
|
|
DIB.createImportedDeclaration(CU, nullptr, 1);
|
|
DIB.createImportedDeclaration(CU, nullptr, 1);
|
|
DIB.createImportedDeclaration(CU, nullptr, 1);
|
|
DIB.createImportedModule(CU, (DIImportedEntity *)nullptr, 2);
|
|
DIB.createImportedModule(CU, (DIImportedEntity *)nullptr, 2);
|