diff options
author | Eric Christopher <echristo@gmail.com> | 2013-06-26 22:44:57 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-06-26 22:44:57 +0000 |
commit | 8479989ebe30f8fb9e14fbd5622fe0fd51988ff6 (patch) | |
tree | d58e3bf5f9df7599e4866263f580679dba8367d4 /lib | |
parent | b0a9ffaeb0cb3802da3611b95d3ea7f49f03f787 (diff) | |
download | llvm-8479989ebe30f8fb9e14fbd5622fe0fd51988ff6.tar.gz llvm-8479989ebe30f8fb9e14fbd5622fe0fd51988ff6.tar.bz2 llvm-8479989ebe30f8fb9e14fbd5622fe0fd51988ff6.tar.xz |
Revert "Debug Info: clean up usage of Verify." as it's breaking bots.
This reverts commit r185020
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/NVPTX/NVPTXAsmPrinter.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Instrumentation/GCOVProfiling.cpp | 4 | ||||
-rw-r--r-- | lib/Transforms/Utils/Local.cpp | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/NVPTX/NVPTXAsmPrinter.cpp b/lib/Target/NVPTX/NVPTXAsmPrinter.cpp index 8ceddf3b8c..ff73931565 100644 --- a/lib/Target/NVPTX/NVPTXAsmPrinter.cpp +++ b/lib/Target/NVPTX/NVPTXAsmPrinter.cpp @@ -279,7 +279,7 @@ void NVPTXAsmPrinter::emitLineNumberAsDotLoc(const MachineInstr &MI) { const LLVMContext &ctx = MF->getFunction()->getContext(); DIScope Scope(curLoc.getScope(ctx)); - if (!Scope.isScope()) + if (!Scope.Verify()) return; StringRef fileName(Scope.getFilename()); diff --git a/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/lib/Transforms/Instrumentation/GCOVProfiling.cpp index fe3fe1c74a..ef66bf8e11 100644 --- a/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -434,7 +434,7 @@ void GCOVProfiler::emitProfileNotes() { DIArray SPs = CU.getSubprograms(); for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++i) { DISubprogram SP(SPs.getElement(i)); - assert(SP.isSubprogram()); + if (!SP.Verify()) continue; Function *F = SP.getFunction(); if (!F) continue; @@ -483,7 +483,7 @@ bool GCOVProfiler::emitProfileArcs() { SmallVector<std::pair<GlobalVariable *, MDNode *>, 8> CountersBySP; for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++i) { DISubprogram SP(SPs.getElement(i)); - assert(SP.isSubprogram()); + if (!SP.Verify()) continue; Function *F = SP.getFunction(); if (!F) continue; if (!Result) Result = true; diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp index 1878a54c9a..12e5b3e9d2 100644 --- a/lib/Transforms/Utils/Local.cpp +++ b/lib/Transforms/Utils/Local.cpp @@ -854,7 +854,7 @@ static bool LdStHasDebugValue(DIVariable &DIVar, Instruction *I) { bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI, StoreInst *SI, DIBuilder &Builder) { DIVariable DIVar(DDI->getVariable()); - if (!DIVar.isVariable()) + if (!DIVar.Verify()) return false; if (LdStHasDebugValue(DIVar, SI)) @@ -888,7 +888,7 @@ bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI, bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI, LoadInst *LI, DIBuilder &Builder) { DIVariable DIVar(DDI->getVariable()); - if (!DIVar.isVariable()) + if (!DIVar.Verify()) return false; if (LdStHasDebugValue(DIVar, LI)) @@ -961,7 +961,7 @@ bool llvm::replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress, if (!DDI) return false; DIVariable DIVar(DDI->getVariable()); - if (!DIVar.isVariable()) + if (!DIVar.Verify()) return false; // Create a copy of the original DIDescriptor for user variable, appending |