mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 17:56:53 +00:00
Revert "Debug Info: clean up usage of Verify." as it's breaking bots.
This reverts commit r185020 llvm-svn: 185032
This commit is contained in:
parent
780d4ccf9e
commit
2004fbdda9
@ -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());
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -389,8 +389,8 @@ struct BreakpointPrinter : public ModulePass {
|
||||
for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) {
|
||||
std::string Name;
|
||||
DISubprogram SP(NMD->getOperand(i));
|
||||
assert(SP.isSubprogram());
|
||||
getContextName(SP.getContext(), Name);
|
||||
if (SP.Verify())
|
||||
getContextName(SP.getContext(), Name);
|
||||
Name = Name + SP.getDisplayName().str();
|
||||
if (!Name.empty() && Processed.insert(Name)) {
|
||||
Out << Name << "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user