[llvm] r243149 - Verifier: Remove unnecessary references to DW_TAG_subroutine_type, NFC

Duncan P. N. Exon Smith dexonsmith at apple.com
Fri Jul 24 12:52:18 PDT 2015


Author: dexonsmith
Date: Fri Jul 24 14:52:18 2015
New Revision: 243149

URL: http://llvm.org/viewvc/llvm-project?rev=243149&view=rev
Log:
Verifier: Remove unnecessary references to DW_TAG_subroutine_type, NFC

Remove unnecessary references to `DW_TAG_subroutine_type` in
`visitDICompositeType()` and `visitDIDerivedTypeBase()`, since
`visitDISubroutineType()` doesn't call either of those (and shouldn't,
since subroutine types are really quite special).

Modified:
    llvm/trunk/lib/IR/Verifier.cpp

Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=243149&r1=243148&r2=243149&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Fri Jul 24 14:52:18 2015
@@ -800,7 +800,6 @@ void Verifier::visitDIDerivedTypeBase(co
             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_structure_type ||
             Tag == dwarf::DW_TAG_member || Tag == dwarf::DW_TAG_typedef,
@@ -852,7 +851,6 @@ void Verifier::visitDICompositeType(cons
              N.getTag() == dwarf::DW_TAG_structure_type ||
              N.getTag() == dwarf::DW_TAG_union_type ||
              N.getTag() == dwarf::DW_TAG_enumeration_type ||
-             N.getTag() == dwarf::DW_TAG_subroutine_type ||
              N.getTag() == dwarf::DW_TAG_class_type,
          "invalid tag", &N);
 





More information about the llvm-commits mailing list