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
This commit is contained in:
Misha Brukman
2003-09-23 16:17:50 +00:00
parent e0dd0d47cb
commit d554ebfcf7
2 changed files with 144 additions and 133 deletions

View File

@ -164,8 +164,8 @@ private:
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);