Implement global variables.  Struct and Pointer initializers are not implemented yet though


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@818 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index 9611e0c..9bb514e 100644
--- a/tools/lli/lli.cpp
+++ b/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 @@
 // 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();