aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/ReaderInternals.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-04 20:00:03 +0000
committerChris Lattner <sabre@nondot.org>2003-10-04 20:00:03 +0000
commit9e460f23bb00c8b107ea6ef3a932a33e115d3dce (patch)
tree9e0d7e34f4cceb0902b9e94f28e03e310bf3fa84 /lib/Bytecode/Reader/ReaderInternals.h
parent51ca860bda05bc647140e721c2c2c23c81c4904b (diff)
Transform two methods to return pointers directly instead of returning them
as 'by reference' arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/ReaderInternals.h')
-rw-r--r--lib/Bytecode/Reader/ReaderInternals.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Bytecode/Reader/ReaderInternals.h b/lib/Bytecode/Reader/ReaderInternals.h
index f7113c0c57..5ce7686894 100644
--- a/lib/Bytecode/Reader/ReaderInternals.h
+++ b/lib/Bytecode/Reader/ReaderInternals.h
@@ -169,8 +169,9 @@ private:
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 @@ private:
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);