diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-09 22:21:33 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-09 22:21:33 +0000 |
commit | 2439972a618c2a05dd88725e47a372f9825fc4fc (patch) | |
tree | f00dff679da61dfd19bf4ade3e8a2f10cc5f91c4 /lib/Bytecode/Reader/Reader.h | |
parent | 011bed5ef836fa92e750d21e124158592192f5f4 (diff) |
Error Handling Cleanup:
- get rid of PARSE_ERROR macro
- add error(std::string) function
- use error(std::string) for all errors
- make input dependent asserts call error(std::string) instead
- ensure asserts are only for logic bugs, not input discrepancies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14729 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/Reader.h')
-rw-r--r-- | lib/Bytecode/Reader/Reader.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Bytecode/Reader/Reader.h b/lib/Bytecode/Reader/Reader.h index 843364ac9f..79dbc519e1 100644 --- a/lib/Bytecode/Reader/Reader.h +++ b/lib/Bytecode/Reader/Reader.h @@ -405,6 +405,8 @@ private: } } + inline void error(std::string errmsg); + BytecodeReader(const BytecodeReader &); // DO NOT IMPLEMENT void operator=(const BytecodeReader &); // DO NOT IMPLEMENT |