diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-07-24 04:47:11 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-07-24 04:47:11 +0000 |
commit | 3075428d16487485f39bd6d4a053da50cf83e203 (patch) | |
tree | 3b1347d7a26ad21ab49bbdbcd0581cad0e66eac3 /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | 68d64a2d906803eca73f3d393761627ddebcf396 (diff) | |
download | llvm-3075428d16487485f39bd6d4a053da50cf83e203.zip llvm-3075428d16487485f39bd6d4a053da50cf83e203.tar.gz llvm-3075428d16487485f39bd6d4a053da50cf83e203.tar.bz2 |
Introduce a new variant type 'TryResult' to represent the result of
TryEvaluateBool instead of using a raw 'int'. This avoids any
confusion of how 'int' converts to bool, and makes the resultant code
easier to read.
Condense a bunch of 'addSuccessor()' calls in 'if ... else' to use the
ternary operator instead.
llvm-svn: 76947
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
0 files changed, 0 insertions, 0 deletions