summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b9962d)
raw | patch | inline | side by side (parent: 8b9962d)
author | Manman Ren <mren@apple.com> | |
Wed, 26 Jun 2013 21:26:10 +0000 (21:26 +0000) | ||
committer | Manman Ren <mren@apple.com> | |
Wed, 26 Jun 2013 21:26:10 +0000 (21:26 +0000) |
No functionality change.
It should suffice to check the type of a debug info metadata, instead of
calling Verify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185020 91177308-0d34-0410-b5e6-96231b3b80d8
It should suffice to check the type of a debug info metadata, instead of
calling Verify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185020 91177308-0d34-0410-b5e6-96231b3b80d8
index ff739315657d98e9c23f639db92563fe95023915..8ceddf3b8c813039c27165fd6eae55532a46792a 100644 (file)
const LLVMContext &ctx = MF->getFunction()->getContext();
DIScope Scope(curLoc.getScope(ctx));
- if (!Scope.Verify())
+ if (!Scope.isScope())
return;
StringRef fileName(Scope.getFilename());
diff --git a/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/lib/Transforms/Instrumentation/GCOVProfiling.cpp
index ef66bf8e11ca04b05dedb66922ce968a434b3ce7..fe3fe1c74a040f92d73386ec146cfa1ff7db066d 100644 (file)
DIArray SPs = CU.getSubprograms();
for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++i) {
DISubprogram SP(SPs.getElement(i));
- if (!SP.Verify()) continue;
+ assert(SP.isSubprogram());
Function *F = SP.getFunction();
if (!F) continue;
SmallVector<std::pair<GlobalVariable *, MDNode *>, 8> CountersBySP;
for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++i) {
DISubprogram SP(SPs.getElement(i));
- if (!SP.Verify()) continue;
+ assert(SP.isSubprogram());
Function *F = SP.getFunction();
if (!F) continue;
if (!Result) Result = true;
index 12e5b3e9d2e0aa261991e20272e028787c38bac5..1878a54c9acc65f2f91af724018f3f61ebe4e020 100644 (file)
bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
StoreInst *SI, DIBuilder &Builder) {
DIVariable DIVar(DDI->getVariable());
- if (!DIVar.Verify())
+ if (!DIVar.isVariable())
return false;
if (LdStHasDebugValue(DIVar, SI))
bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
LoadInst *LI, DIBuilder &Builder) {
DIVariable DIVar(DDI->getVariable());
- if (!DIVar.Verify())
+ if (!DIVar.isVariable())
return false;
if (LdStHasDebugValue(DIVar, LI))
if (!DDI)
return false;
DIVariable DIVar(DDI->getVariable());
- if (!DIVar.Verify())
+ if (!DIVar.isVariable())
return false;
// Create a copy of the original DIDescriptor for user variable, appending
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index f642a78fc06f190efcb4b901ac17d1cfc80db2b3..11508de9601804db5431348dd41c5aeed2ced104 100644 (file)
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
for (unsigned i = 0, e = NMD->getNumOperands(); i != e; ++i) {
std::string Name;
DISubprogram SP(NMD->getOperand(i));
- if (SP.Verify())
- getContextName(SP.getContext(), Name);
+ assert(SP.isSubprogram());
+ getContextName(SP.getContext(), Name);
Name = Name + SP.getDisplayName().str();
if (!Name.empty() && Processed.insert(Name)) {
Out << Name << "\n";