summaryrefslogtreecommitdiff
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-06-26 21:26:10 +0000
committerManman Ren <mren@apple.com>2013-06-26 21:26:10 +0000
commit02e75021d80bb068d0178f1e4fdd0a4fb36b9811 (patch)
tree45cb19def5d0e092731132f85d43fbeed95e6abd /tools/opt/opt.cpp
parent8b9962d514c1834c17254e53b169bf618079562c (diff)
downloadllvm-02e75021d80bb068d0178f1e4fdd0a4fb36b9811.tar.gz
llvm-02e75021d80bb068d0178f1e4fdd0a4fb36b9811.tar.bz2
llvm-02e75021d80bb068d0178f1e4fdd0a4fb36b9811.tar.xz
Debug Info: clean up usage of Verify.
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
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index f642a78fc0..11508de960 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -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));
- 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";