diff options
author | Vassil Vassilev <v.g.vassilev@gmail.com> | 2017-04-11 14:55:32 +0000 |
---|---|---|
committer | Vassil Vassilev <v.g.vassilev@gmail.com> | 2017-04-11 14:55:32 +0000 |
commit | e1f12fadc0ce37def3fbf99373f315a3667c4766 (patch) | |
tree | 54b9ac55cbc0893f27e9d0e26ad64e418b45496d /llvm/lib/IR | |
parent | 5e39c446545225384027fcdf9e4b8827377a950f (diff) | |
download | bcm5719-llvm-e1f12fadc0ce37def3fbf99373f315a3667c4766.tar.gz bcm5719-llvm-e1f12fadc0ce37def3fbf99373f315a3667c4766.zip |
Remove unused functions. Remove static qualifier from functions in header files. NFC.
llvm-svn: 299947
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 42751859a47..893890446b7 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -832,28 +832,6 @@ static bool isType(const Metadata *MD) { return !MD || isa<DIType>(MD); } static bool isScope(const Metadata *MD) { return !MD || isa<DIScope>(MD); } static bool isDINode(const Metadata *MD) { return !MD || isa<DINode>(MD); } -template <class Ty> -static bool isValidMetadataArrayImpl(const MDTuple &N, bool AllowNull) { - for (Metadata *MD : N.operands()) { - if (MD) { - if (!isa<Ty>(MD)) - return false; - } else { - if (!AllowNull) - return false; - } - } - return true; -} - -template <class Ty> static bool isValidMetadataArray(const MDTuple &N) { - return isValidMetadataArrayImpl<Ty>(N, /* AllowNull */ false); -} - -template <class Ty> static bool isValidMetadataNullArray(const MDTuple &N) { - return isValidMetadataArrayImpl<Ty>(N, /* AllowNull */ true); -} - void Verifier::visitDILocation(const DILocation &N) { AssertDI(N.getRawScope() && isa<DILocalScope>(N.getRawScope()), "location requires a valid scope", &N, N.getRawScope()); |