Transform two methods to return pointers directly instead of returning them
as 'by reference' arguments.
llvm-svn: 8849
diff --git a/llvm/lib/Bytecode/Reader/ReaderInternals.h b/llvm/lib/Bytecode/Reader/ReaderInternals.h
index f7113c0..5ce7686 100644
--- a/llvm/lib/Bytecode/Reader/ReaderInternals.h
+++ b/llvm/lib/Bytecode/Reader/ReaderInternals.h
@@ -169,8 +169,9 @@
void ParseConstantPool(const unsigned char *&Buf, const unsigned char *EndBuf,
ValueTable &Tab, TypeValuesListTy &TypeTab);
- void parseConstantValue(const unsigned char *&Buf, const unsigned char *End,
- const Type *Ty, Constant *&V);
+ Constant *parseConstantValue(const unsigned char *&Buf,
+ const unsigned char *End,
+ const Type *Ty);
void parseTypeConstants(const unsigned char *&Buf,
const unsigned char *EndBuf,
TypeValuesListTy &Tab, unsigned NumEntries);
@@ -185,7 +186,7 @@
void setValueTo(ValueTable &D, unsigned Slot, Value *V);
void postResolveValues(ValueTable &ValTab);
- void getTypeSlot(const Type *Ty, unsigned &Slot);
+ unsigned getTypeSlot(const Type *Ty);
// resolve all references to the placeholder (if any) for the given value
void ResolveReferencesToValue(Value *Val, unsigned Slot);