summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-06 19:49:39 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-06 19:49:39 +0000
commita5099dce6263405d72d19f3783156492e436d31f (patch)
treeb2113541075bc3e904dc47815b091560c8d853b2 /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
parent62e93623548b0eed5be7a5aa3b49b09a1d775604 (diff)
downloadbcm5719-llvm-a5099dce6263405d72d19f3783156492e436d31f.tar.gz
bcm5719-llvm-a5099dce6263405d72d19f3783156492e436d31f.zip
DebugInfo: Remove DIDescriptor::Verify()
Remove `DIDescriptor::Verify()` and the `Verify()`s from subclasses. They had already been gutted, and just did an `isa<>` check. In a couple of cases I've temporarily dropped the check entirely, but subsequent commits are going to disallow conversions to the `DIDescriptor`s directly from `MDNode`, so the checks will come back in another form soon enough. llvm-svn: 234201
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
index f6af73fe20e..dc234dde7f4 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
@@ -440,8 +440,6 @@ void DwarfUnit::addSourceLine(DIE &Die, DIObjCProperty Ty) {
/// addSourceLine - Add location information to specified debug information
/// entry.
void DwarfUnit::addSourceLine(DIE &Die, DINameSpace NS) {
- assert(NS.Verify());
-
addSourceLine(Die, NS.getLineNumber(), NS.getFilename(), NS.getDirectory());
}
@@ -1571,7 +1569,7 @@ void DwarfUnit::constructMemberDIE(DIE &Buffer, DIDerivedType DT) {
/// getOrCreateStaticMemberDIE - Create new DIE for C++ static member.
DIE *DwarfUnit::getOrCreateStaticMemberDIE(DIDerivedType DT) {
- if (!DT.Verify())
+ if (!DT)
return nullptr;
// Construct the context before querying for the existence of the DIE in case
OpenPOWER on IntegriCloud