diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-09 18:25:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-09 18:25:19 +0000 |
commit | 3483f54367e990c61eda61a6a550ba2634a13cb9 (patch) | |
tree | 5f8492876742d269eef59d87fc259e7485d600af /lib/Bytecode/Reader/ReaderInternals.h | |
parent | abb84f84278be1ede058a73529c1ab81db2ea3cd (diff) |
Significantly clean up parsing of instructions. This exceptionizes and
simplifies the control flow a bit. This provides a small (~3%) speedup,
but it's primarily a cleanup exercise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/ReaderInternals.h')
-rw-r--r-- | lib/Bytecode/Reader/ReaderInternals.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/ReaderInternals.h b/lib/Bytecode/Reader/ReaderInternals.h index 410be3a24a..42f7e1b463 100644 --- a/lib/Bytecode/Reader/ReaderInternals.h +++ b/lib/Bytecode/Reader/ReaderInternals.h @@ -163,8 +163,8 @@ private: const unsigned char *End, unsigned BlockNo); - bool ParseInstruction(const unsigned char *&Buf, const unsigned char *End, - Instruction *&); + Instruction *ParseInstruction(const unsigned char *&Buf, + const unsigned char *End); std::auto_ptr<RawInst> ParseRawInst(const unsigned char *&Buf, const unsigned char *End); |