projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector size.
[oota-llvm.git]
/
lib
/
Bitcode
/
Reader
/
BitcodeReader.h
diff --git
a/lib/Bitcode/Reader/BitcodeReader.h
b/lib/Bitcode/Reader/BitcodeReader.h
index 28674eb14ef2aece9f43a142d7283ed3ad1ec9ec..e4de4ab7c7c505754bad66dc558bf69f72093a72 100644
(file)
--- a/
lib/Bitcode/Reader/BitcodeReader.h
+++ b/
lib/Bitcode/Reader/BitcodeReader.h
@@
-258,7
+258,7
@@
private:
/// getValueTypePair - Read a value/type pair out of the specified record from
/// slot 'Slot'. Increment Slot past the number of slots used in the record.
/// Return true on failure.
/// getValueTypePair - Read a value/type pair out of the specified record from
/// slot 'Slot'. Increment Slot past the number of slots used in the record.
/// Return true on failure.
- bool getValueTypePair(SmallVector
<uint64_t, 64
> &Record, unsigned &Slot,
+ bool getValueTypePair(SmallVector
Impl<uint64_t
> &Record, unsigned &Slot,
unsigned InstNum, Value *&ResVal) {
if (Slot == Record.size()) return true;
unsigned ValNo = (unsigned)Record[Slot++];
unsigned InstNum, Value *&ResVal) {
if (Slot == Record.size()) return true;
unsigned ValNo = (unsigned)Record[Slot++];
@@
-282,7
+282,7
@@
private:
/// popValue - Read a value out of the specified record from slot 'Slot'.
/// Increment Slot past the number of slots used by the value in the record.
/// Return true if there is an error.
/// popValue - Read a value out of the specified record from slot 'Slot'.
/// Increment Slot past the number of slots used by the value in the record.
/// Return true if there is an error.
- bool popValue(SmallVector
<uint64_t, 64
> &Record, unsigned &Slot,
+ bool popValue(SmallVector
Impl<uint64_t
> &Record, unsigned &Slot,
unsigned InstNum, Type *Ty, Value *&ResVal) {
if (getValue(Record, Slot, InstNum, Ty, ResVal))
return true;
unsigned InstNum, Type *Ty, Value *&ResVal) {
if (getValue(Record, Slot, InstNum, Ty, ResVal))
return true;
@@
-292,7
+292,7
@@
private:
}
/// getValue -- Like popValue, but does not increment the Slot number.
}
/// getValue -- Like popValue, but does not increment the Slot number.
- bool getValue(SmallVector
<uint64_t, 64
> &Record, unsigned Slot,
+ bool getValue(SmallVector
Impl<uint64_t
> &Record, unsigned Slot,
unsigned InstNum, Type *Ty, Value *&ResVal) {
ResVal = getValue(Record, Slot, InstNum, Ty);
return ResVal == 0;
unsigned InstNum, Type *Ty, Value *&ResVal) {
ResVal = getValue(Record, Slot, InstNum, Ty);
return ResVal == 0;
@@
-300,7
+300,7
@@
private:
/// getValue -- Version of getValue that returns ResVal directly,
/// or 0 if there is an error.
/// getValue -- Version of getValue that returns ResVal directly,
/// or 0 if there is an error.
- Value *getValue(SmallVector
<uint64_t, 64
> &Record, unsigned Slot,
+ Value *getValue(SmallVector
Impl<uint64_t
> &Record, unsigned Slot,
unsigned InstNum, Type *Ty) {
if (Slot == Record.size()) return 0;
unsigned ValNo = (unsigned)Record[Slot];
unsigned InstNum, Type *Ty) {
if (Slot == Record.size()) return 0;
unsigned ValNo = (unsigned)Record[Slot];
@@
-311,7
+311,7
@@
private:
}
/// getValueSigned -- Like getValue, but decodes signed VBRs.
}
/// getValueSigned -- Like getValue, but decodes signed VBRs.
- Value *getValueSigned(SmallVector
<uint64_t, 64
> &Record, unsigned Slot,
+ Value *getValueSigned(SmallVector
Impl<uint64_t
> &Record, unsigned Slot,
unsigned InstNum, Type *Ty) {
if (Slot == Record.size()) return 0;
unsigned ValNo = (unsigned)decodeSignRotatedValue(Record[Slot]);
unsigned InstNum, Type *Ty) {
if (Slot == Record.size()) return 0;
unsigned ValNo = (unsigned)decodeSignRotatedValue(Record[Slot]);