summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/VerifierTest.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2016-05-09 17:43:24 +0000
committerAdrian Prantl <aprantl@apple.com>2016-05-09 17:43:24 +0000
commit614d411a0d0078cc20d55b20b37a32a8c0c52400 (patch)
treeccd9797e5a74d97a4e6f0d7bf28b28c4c27ff6ae /llvm/unittests/IR/VerifierTest.cpp
parentda43f0e76f9a9e7de5d13d902048ffe238cb591c (diff)
downloadbcm5719-llvm-614d411a0d0078cc20d55b20b37a32a8c0c52400.tar.gz
bcm5719-llvm-614d411a0d0078cc20d55b20b37a32a8c0c52400.zip
Revert "Separate the Verifier into an analysis and a transformation pass and"
This reverts commit 268937 while investigating build bot breakage. llvm-svn: 268939
Diffstat (limited to 'llvm/unittests/IR/VerifierTest.cpp')
-rw-r--r--llvm/unittests/IR/VerifierTest.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/llvm/unittests/IR/VerifierTest.cpp b/llvm/unittests/IR/VerifierTest.cpp
index 1fc50da16a9..8b951739e47 100644
--- a/llvm/unittests/IR/VerifierTest.cpp
+++ b/llvm/unittests/IR/VerifierTest.cpp
@@ -144,30 +144,5 @@ TEST(VerifierTest, CrossModuleMetadataRef) {
EXPECT_TRUE(StringRef(ErrorOS.str())
.startswith("Referencing global in another module!"));
}
-
-TEST(VerifierTest, StripInvalidDebugInfo) {
- LLVMContext C;
- Module M("M", C);
- DIBuilder DIB(M);
- DIB.createCompileUnit(dwarf::DW_LANG_C89, "broken.c", "/",
- "unittest", false, "", 0);
- DIB.finalize();
- EXPECT_FALSE(verifyModule(M));
-
- // Now break it.
- auto *File = DIB.createFile("not-a-CU.f", ".");
- NamedMDNode *NMD = M.getOrInsertNamedMetadata("llvm.dbg.cu");
- NMD->addOperand(File);
- EXPECT_TRUE(verifyModule(M));
-
- ModulePassManager MPM(true);
- MPM.addPass(VerifierPass(false));
- ModuleAnalysisManager MAM(true);
- MAM.registerPass([&] { return VerifierAnalysis(); });
- MPM.run(M, MAM);
- EXPECT_FALSE(verifyModule(M));
-}
-
-
} // end anonymous namespace
} // end namespace llvm
OpenPOWER on IntegriCloud