diff options
author | Eric Christopher <echristo@gmail.com> | 2015-10-15 06:56:10 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-10-15 06:56:10 +0000 |
commit | bdafb3cd1c4e7cb7f0b1de7345754e79d5a59504 (patch) | |
tree | 7fd5202bc25a6589fc22b44ef38e9a79c63cdf10 /llvm/unittests/IR/IRBuilderTest.cpp | |
parent | 28a6db59298b1b3153743a62eaf89f14f0357247 (diff) | |
download | bcm5719-llvm-bdafb3cd1c4e7cb7f0b1de7345754e79d5a59504.tar.gz bcm5719-llvm-bdafb3cd1c4e7cb7f0b1de7345754e79d5a59504.zip |
Remove DIFile from createSubroutineType.
Patch by Amaury Sechet with a small modification by me.
llvm-svn: 250374
Diffstat (limited to 'llvm/unittests/IR/IRBuilderTest.cpp')
-rw-r--r-- | llvm/unittests/IR/IRBuilderTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/IR/IRBuilderTest.cpp b/llvm/unittests/IR/IRBuilderTest.cpp index 093cbbfc779..30e137cadbc 100644 --- a/llvm/unittests/IR/IRBuilderTest.cpp +++ b/llvm/unittests/IR/IRBuilderTest.cpp @@ -312,7 +312,7 @@ TEST_F(IRBuilderTest, DIBuilder) { auto File = DIB.createFile("F.CBL", "/"); auto CU = DIB.createCompileUnit(dwarf::DW_LANG_Cobol74, "F.CBL", "/", "llvm-cobol74", true, "", 0); - auto Type = DIB.createSubroutineType(File, DIB.getOrCreateTypeArray(None)); + auto Type = DIB.createSubroutineType(DIB.getOrCreateTypeArray(None)); DIB.createFunction(CU, "foo", "", File, 1, Type, false, true, 1, 0, true, F); AllocaInst *I = Builder.CreateAlloca(Builder.getInt8Ty()); auto BarSP = DIB.createFunction(CU, "bar", "", File, 1, Type, false, true, 1, @@ -362,7 +362,7 @@ TEST_F(IRBuilderTest, DebugLoc) { auto File = DIB.createFile("tmp.cpp", "/"); auto CU = DIB.createCompileUnit(dwarf::DW_LANG_C_plus_plus_11, "tmp.cpp", "/", "", true, "", 0); - auto SPType = DIB.createSubroutineType(File, DIB.getOrCreateTypeArray(None)); + auto SPType = DIB.createSubroutineType(DIB.getOrCreateTypeArray(None)); auto SP = DIB.createFunction(CU, "foo", "foo", File, 1, SPType, false, true, 1); DebugLoc DL1 = DILocation::get(Ctx, 2, 0, SP); |