Stop returning bool and pass Instruction by reference;
return std::auto_ptr and use exceptions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8684 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Bytecode/Reader/ReaderInternals.h b/lib/Bytecode/Reader/ReaderInternals.h
index 7ca8003..e715405 100644
--- a/lib/Bytecode/Reader/ReaderInternals.h
+++ b/lib/Bytecode/Reader/ReaderInternals.h
@@ -164,8 +164,8 @@
bool ParseInstruction (const unsigned char *&Buf, const unsigned char *End,
Instruction *&);
- bool ParseRawInst (const unsigned char *&Buf, const unsigned char *End,
- RawInst &);
+ std::auto_ptr<RawInst> ParseRawInst(const unsigned char *&Buf,
+ const unsigned char *End);
void ParseConstantPool(const unsigned char *&Buf, const unsigned char *EndBuf,
ValueTable &Tab, TypeValuesListTy &TypeTab);