aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Bitcode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2013-01-20 02:50:32 +0000
committerChris Lattner <sabre@nondot.org>2013-01-20 02:50:32 +0000
commit4156ca76e31877b17063a6e01fb7f1dad771c5aa (patch)
tree5b9fa7ef09cefca6acdec5156c5f3721562279b6 /include/llvm/Bitcode
parent52878db4659f3c8723e82b9ce8be16b1b61fd17d (diff)
downloadexternal_llvm-4156ca76e31877b17063a6e01fb7f1dad771c5aa.zip
external_llvm-4156ca76e31877b17063a6e01fb7f1dad771c5aa.tar.gz
external_llvm-4156ca76e31877b17063a6e01fb7f1dad771c5aa.tar.bz2
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')
-rw-r--r--include/llvm/Bitcode/BitstreamReader.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h
index 3e299e9..0d9bd3e4 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
//===--------------------------------------------------------------------===//