diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-07-26 20:04:30 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-07-26 20:04:30 +0000 |
commit | ce0a12399c263544bb23920131bd3da60d981b38 (patch) | |
tree | a3912ead2bd9c440acc1d6bb3d3b3df66b10fb7a /lib/IR | |
parent | 0fc641df377bf6ea88bbc28b377f6a0810dfa220 (diff) | |
download | llvm-ce0a12399c263544bb23920131bd3da60d981b38.tar.gz llvm-ce0a12399c263544bb23920131bd3da60d981b38.tar.bz2 llvm-ce0a12399c263544bb23920131bd3da60d981b38.tar.xz |
Debug Info Verifier: enable verification of DICompileUnit.
We used to call Verify before adding DICompileUnit to the list, and now we
remove the check and always add DICompileUnit to the list in DebugInfoFinder,
so we can verify them later on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r-- | lib/IR/DebugInfo.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index 4d5ae260f6..5c70a21fd8 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -1041,9 +1041,6 @@ bool DebugInfoFinder::addType(DIType DT) { /// addCompileUnit - Add compile unit into CUs. bool DebugInfoFinder::addCompileUnit(DICompileUnit CU) { - if (!CU.Verify()) - return false; - if (!NodesSeen.insert(CU)) return false; |