summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-07-26 20:04:30 +0000
committerManman Ren <manman.ren@gmail.com>2013-07-26 20:04:30 +0000
commitcc4e4d80fe58c89f48ffe29f24e286ea38f241bf (patch)
tree618e816dda00db0d0e0c8153374fc5b2581d986e /llvm/lib/IR
parent6912415f3fea34364f54e4ef267355e0baf4440c (diff)
downloadbcm5719-llvm-cc4e4d80fe58c89f48ffe29f24e286ea38f241bf.tar.gz
bcm5719-llvm-cc4e4d80fe58c89f48ffe29f24e286ea38f241bf.zip
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. llvm-svn: 187237
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 4d5ae260f62..5c70a21fd81 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud