diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-10-15 05:51:48 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-10-15 05:51:48 +0000 |
| commit | c62e2e5bf7d40ece83794ed7bb87d7b650074922 (patch) | |
| tree | de20dc59fbeaf9c1387eae6a15dd2d1857bbaf0f /llvm/tools | |
| parent | c306f18c3e6050b25704de56917180d2d2c8265c (diff) | |
| download | bcm5719-llvm-c62e2e5bf7d40ece83794ed7bb87d7b650074922.tar.gz bcm5719-llvm-c62e2e5bf7d40ece83794ed7bb87d7b650074922.zip | |
Implement global variables. Struct and Pointer initializers are not implemented yet though
llvm-svn: 818
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/lli/lli.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index 9611e0ca85f..9bb514e54e7 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/tools/lli/lli.cpp @@ -9,7 +9,6 @@ #include "Interpreter.h" #include "llvm/Support/CommandLine.h" -#include "llvm/Bytecode/Reader.h" cl::String InputFilename("" , "Input filename", cl::NoFlags, "-"); cl::String MainFunction ("f" , "Function to execute", cl::NoFlags, "main"); @@ -21,10 +20,8 @@ cl::Flag ProfileMode ("profile", "Enable Profiling [unimp]"); // Interpreter ctor - Initialize stuff // Interpreter::Interpreter() : ExitCode(0), Profile(ProfileMode), CurFrame(-1) { - CurMod = ParseBytecodeFile(InputFilename); - if (CurMod == 0) { - cout << "Error parsing '" << InputFilename << "': No module loaded.\n"; - } + CurMod = 0; + loadModule(InputFilename); // Initialize the "backend" initializeExecutionEngine(); |

