diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-24 00:54:36 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-24 00:54:36 +0000 |
commit | 9880157ead8c2b3294d81c36a321101dc6e54849 (patch) | |
tree | 37754e0603c6f0dc23d8c2ad3411d01e7770113d /llvm/lib | |
parent | 7d2b48df871972174022e619fe9e905b8017e1d0 (diff) | |
download | bcm5719-llvm-9880157ead8c2b3294d81c36a321101dc6e54849.tar.gz bcm5719-llvm-9880157ead8c2b3294d81c36a321101dc6e54849.zip |
Add a fixme and reformat.
llvm-svn: 187012
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index b611f458c0e..c42a9a377f4 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -437,18 +437,17 @@ bool DIObjCProperty::Verify() const { bool DIType::Verify() const { if (!isType()) return false; + // FIXME: Sink this into the various subclass verifies. unsigned Tag = getTag(); if (!isBasicType() && Tag != dwarf::DW_TAG_const_type && Tag != dwarf::DW_TAG_volatile_type && Tag != dwarf::DW_TAG_pointer_type && Tag != dwarf::DW_TAG_ptr_to_member_type && Tag != dwarf::DW_TAG_reference_type && Tag != dwarf::DW_TAG_rvalue_reference_type && - Tag != dwarf::DW_TAG_restrict_type && - Tag != dwarf::DW_TAG_array_type && + Tag != dwarf::DW_TAG_restrict_type && Tag != dwarf::DW_TAG_array_type && Tag != dwarf::DW_TAG_enumeration_type && Tag != dwarf::DW_TAG_subroutine_type && - Tag != dwarf::DW_TAG_inheritance && - Tag != dwarf::DW_TAG_friend && + Tag != dwarf::DW_TAG_inheritance && Tag != dwarf::DW_TAG_friend && getFilename().empty()) return false; // DIType is abstract, it should be a BasicType, a DerivedType or |