diff options
| author | Jeff Cohen <jeffc@jolt-lang.org> | 2006-02-07 05:29:44 +0000 |
|---|---|---|
| committer | Jeff Cohen <jeffc@jolt-lang.org> | 2006-02-07 05:29:44 +0000 |
| commit | 2439669c6f7944d1ca94eca645afd1932c646457 (patch) | |
| tree | d4f08b6d617a8a0e59437ae6439f5bce90e48ef1 /llvm/lib/ExecutionEngine/Interpreter/Interpreter.h | |
| parent | 69e849014c0d17f97a5c22069a587e852e626395 (diff) | |
| download | llvm-2439669c6f7944d1ca94eca645afd1932c646457.zip llvm-2439669c6f7944d1ca94eca645afd1932c646457.tar.gz llvm-2439669c6f7944d1ca94eca645afd1932c646457.tar.bz2 | |
The interpreter assumes that the caller of runFunction() must be lli, and
therefore the function being called must be a main() returning an int. The
consequences when these assumptions are false are not good, so don't assume
them.
llvm-svn: 26031
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Interpreter.h')
| -rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Interpreter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h index 180d092..e45b4c6 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.h @@ -80,7 +80,7 @@ struct ExecutionContext { // Interpreter - This class represents the entirety of the interpreter. // class Interpreter : public ExecutionEngine, public InstVisitor<Interpreter> { - int ExitCode; // The exit code to be returned by the lli util + GenericValue ExitValue; // The return value of the called function TargetData TD; IntrinsicLowering *IL; |
