diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-05-09 17:43:30 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-05-09 17:43:30 +0000 |
commit | 6d80100c6a6cf491ffe32138a015975901fcc3e0 (patch) | |
tree | 4ee4c1a96edbb66aa8b5e20ae5e5af09e865da70 /llvm/lib/IR/Verifier.cpp | |
parent | 614d411a0d0078cc20d55b20b37a32a8c0c52400 (diff) | |
download | bcm5719-llvm-6d80100c6a6cf491ffe32138a015975901fcc3e0.tar.gz bcm5719-llvm-6d80100c6a6cf491ffe32138a015975901fcc3e0.zip |
Revert "Allow the LTO code generator to strip invalid debug info from the input."
This reverts commit 268936 while investigating buildbot breakage.
llvm-svn: 268940
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index e09f763f10b..576aefdf29a 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -4417,22 +4417,18 @@ bool llvm::verifyFunction(const Function &f, raw_ostream *OS) { return !V.verify(F); } -bool llvm::verifyModule(const Module &M, raw_ostream *OS, - bool *BrokenDebugInfo) { +bool llvm::verifyModule(const Module &M, raw_ostream *OS) { // Don't use a raw_null_ostream. Printing IR is expensive. - Verifier V(OS, /*ShouldTreatBrokenDebugInfoAsError=*/!BrokenDebugInfo); + Verifier V(OS, /*ShouldTreatBrokenDebugInfoAsError=*/true); bool Broken = false; for (const Function &F : M) if (!F.isDeclaration() && !F.isMaterializable()) Broken |= !V.verify(F); - Broken |= !V.verify(M); - if (BrokenDebugInfo) - *BrokenDebugInfo = V.hasBrokenDebugInfo(); // Note that this function's return value is inverted from what you would // expect of a function called "verify". - return Broken; + return !V.verify(M) || Broken; } namespace { |