llvm.org GIT mirror llvm / 8479989
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 Eric Christopher 6 years ago
4 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
278278 const LLVMContext &ctx = MF->getFunction()->getContext();
279279 DIScope Scope(curLoc.getScope(ctx));
280280
281 if (!Scope.isScope())
281 if (!Scope.Verify())
282282 return;
283283
284284 StringRef fileName(Scope.getFilename());
433433 DIArray SPs = CU.getSubprograms();
434434 for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++i) {
435435 DISubprogram SP(SPs.getElement(i));
436 assert(SP.isSubprogram());
436 if (!SP.Verify()) continue;
437437
438438 Function *F = SP.getFunction();
439439 if (!F) continue;
482482 SmallVector, 8> CountersBySP;
483483 for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++i) {
484484 DISubprogram SP(SPs.getElement(i));
485 assert(SP.isSubprogram());
485 if (!SP.Verify()) continue;
486486 Function *F = SP.getFunction();
487487 if (!F) continue;
488488 if (!Result) Result = true;
853853 bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
854854 StoreInst *SI, DIBuilder &Builder) {
855855 DIVariable DIVar(DDI->getVariable());
856 if (!DIVar.isVariable())
856 if (!DIVar.Verify())
857857 return false;
858858
859859 if (LdStHasDebugValue(DIVar, SI))
887887 bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
888888 LoadInst *LI, DIBuilder &Builder) {
889889 DIVariable DIVar(DDI->getVariable());
890 if (!DIVar.isVariable())
890 if (!DIVar.Verify())
891891 return false;
892892
893893 if (LdStHasDebugValue(DIVar, LI))
960960 if (!DDI)
961961 return false;
962962 DIVariable DIVar(DDI->getVariable());
963 if (!DIVar.isVariable())
963 if (!DIVar.Verify())
964964 return false;
965965
966966 // Create a copy of the original DIDescriptor for user variable, appending
388388 for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) {
389389 std::string Name;
390390 DISubprogram SP(NMD->getOperand(i));
391 assert(SP.isSubprogram());
392 getContextName(SP.getContext(), Name);
391 if (SP.Verify())
392 getContextName(SP.getContext(), Name);
393393 Name = Name + SP.getDisplayName().str();
394394 if (!Name.empty() && Processed.insert(Name)) {
395395 Out << Name << "\n";