diff options
author | Chris Lattner <sabre@nondot.org> | 2013-01-20 02:50:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2013-01-20 02:50:32 +0000 |
commit | 4156ca76e31877b17063a6e01fb7f1dad771c5aa (patch) | |
tree | 5b9fa7ef09cefca6acdec5156c5f3721562279b6 /include/llvm/Bitcode/BitstreamReader.h | |
parent | 52878db4659f3c8723e82b9ce8be16b1b61fd17d (diff) |
switch llvm-bcanalyzer onto the new cursor APIs, allowing deletion of
the old ReadRecord methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bitcode/BitstreamReader.h')
-rw-r--r-- | include/llvm/Bitcode/BitstreamReader.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h index 3e299e9e4c..0d9bd3e466 100644 --- a/include/llvm/Bitcode/BitstreamReader.h +++ b/include/llvm/Bitcode/BitstreamReader.h @@ -158,6 +158,7 @@ struct BitstreamEntry { BitstreamEntry E; E.Kind = Record; E.ID = AbbrevID; return E; } }; + /// BitstreamCursor - This represents a position within a bitcode file. There /// may be multiple independent cursors reading within one bitstream, each @@ -516,22 +517,6 @@ public: unsigned readRecord(unsigned AbbrevID, SmallVectorImpl<uint64_t> &Vals, StringRef *Blob = 0); - unsigned ReadRecord(unsigned AbbrevID, SmallVectorImpl<uint64_t> &Vals, - const char **BlobStart = 0, unsigned *BlobLen = 0) { - if (!BlobStart) - return readRecord(AbbrevID, Vals); - StringRef S; - unsigned X = readRecord(AbbrevID, Vals, &S); - *BlobStart = S.data(); - *BlobLen = S.size(); - return X; - } - - unsigned ReadRecord(unsigned AbbrevID, SmallVectorImpl<uint64_t> &Vals, - const char *&BlobStart, unsigned &BlobLen) { - return ReadRecord(AbbrevID, Vals, &BlobStart, &BlobLen); - } - //===--------------------------------------------------------------------===// // Abbrev Processing //===--------------------------------------------------------------------===// |