diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-23 04:22:38 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-23 04:22:38 +0000 |
commit | d9bbdce7159d2c5dc123292b155aca53535e190d (patch) | |
tree | e8631ba67266d209c71ebc2ea73df138ea176752 /llvm/lib/Bitcode/Writer/ValueEnumerator.h | |
parent | 4b1bc647f05341a959c6f6a433791d4ce62e7de4 (diff) | |
download | bcm5719-llvm-d9bbdce7159d2c5dc123292b155aca53535e190d.tar.gz bcm5719-llvm-d9bbdce7159d2c5dc123292b155aca53535e190d.zip |
ValueEnumerator: Use std::find_if, NFC
Mehdi's pattern recognition pulled this one out. This is cleaner with
std::find_if than with the strange helper function that took an iterator
by reference and updated it.
llvm-svn: 267271
Diffstat (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.h')
-rw-r--r-- | llvm/lib/Bitcode/Writer/ValueEnumerator.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.h b/llvm/lib/Bitcode/Writer/ValueEnumerator.h index 9acb9224212..14407bed03f 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.h +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.h @@ -246,16 +246,6 @@ private: /// function. void incorporateFunctionMetadata(const Function &F); - /// Enumerate operands with the given function tag. - /// - /// Enumerate the Metadata operands between \c I and \c E, returning the - /// first newly-enumerated MDNode without assigning it an ID. - /// - /// \post If a node was found, \c I points just past the node. - /// \post If no node was found, \c I is equal to \c E. - const MDNode *enumerateMetadataOperands(unsigned F, const MDOperand *&I, - const MDOperand *E); - /// Enumerate a single instance of metadata with the given function tag. /// /// If \c MD has already been enumerated, check that \c F matches its |