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 | 8c9191c644cf8c3aceac8e0d1ddc72273355588c (patch) | |
tree | 2982cbadc6785aeadebe45d9f05c36d88089259d /lib/ExecutionEngine/Interpreter/Interpreter.h | |
parent | 68835dd5119150383938c701fc223077d2bc1e25 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Interpreter.h')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Interpreter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.h b/lib/ExecutionEngine/Interpreter/Interpreter.h index 180d0921b7..e45b4c6447 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.h +++ b/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; |