[llvm-commits] CVS: llvm/tools/lli/ExecutionEngine.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Apr 21 17:45:01 PDT 2003


Changes in directory llvm/tools/lli:

ExecutionEngine.cpp updated: 1.4 -> 1.5

---
Log message:

Make stderr, stdout, stdin work with LLI


---
Diffs of the changes:

Index: llvm/tools/lli/ExecutionEngine.cpp
diff -u llvm/tools/lli/ExecutionEngine.cpp:1.4 llvm/tools/lli/ExecutionEngine.cpp:1.5
--- llvm/tools/lli/ExecutionEngine.cpp:1.4	Sun Jan 12 18:58:06 2003
+++ llvm/tools/lli/ExecutionEngine.cpp	Mon Apr 21 17:44:36 2003
@@ -213,6 +213,12 @@
 
       DEBUG(std::cerr << "Global '" << I->getName() << "' -> "
 	              << (void*)GlobalAddress[I] << "\n");
+    } else if (I->getName() == "stdout") {
+      GlobalAddress[I] = &stdout;
+    } else if (I->getName() == "stderr") {
+      GlobalAddress[I] = &stderr;
+    } else if (I->getName() == "stdin") {
+      GlobalAddress[I] = &stdin;
     } else {
       std::cerr << "Global: " << I->getName() << "\n";
       assert(0 && "References to external globals not handled yet!");





More information about the llvm-commits mailing list