diff options
author | Manman Ren <mren@apple.com> | 2013-06-28 05:43:10 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2013-06-28 05:43:10 +0000 |
commit | cbafae6d33031a72ba8219c28cb0e852511f79a3 (patch) | |
tree | 3b8b95912dc89368c64583771df01b53557e4a09 /lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp | |
parent | c084c0945b0530180e8969f5e2017d02d06db130 (diff) | |
download | external_llvm-cbafae6d33031a72ba8219c28cb0e852511f79a3.zip external_llvm-cbafae6d33031a72ba8219c28cb0e852511f79a3.tar.gz external_llvm-cbafae6d33031a72ba8219c28cb0e852511f79a3.tar.bz2 |
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. For cases where we know the type of a DI metadata, use
assert.
Also update testing cases to make them conform to the format of DI classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp index b6cc7ea..73db6d0 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp @@ -500,8 +500,10 @@ void SDNode::print_details(raw_ostream &OS, const SelectionDAG *G) const { DIScope Scope(dl.getScope(G->getMachineFunction().getFunction()->getContext())); OS << " dbg:"; + assert((!Scope || Scope.isScope()) && + "Scope of a DebugLoc should be null or a DIScope."); // Omit the directory, since it's usually long and uninteresting. - if (Scope.Verify()) + if (Scope) OS << Scope.getFilename(); else OS << "<unknown>"; |