projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04e2ad7
)
Make stderr, stdout, stdin work with LLI
author
Chris Lattner
<sabre@nondot.org>
Mon, 21 Apr 2003 22:44:36 +0000
(22:44 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 21 Apr 2003 22:44:36 +0000
(22:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5832
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/ExecutionEngine.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/ExecutionEngine.cpp
b/lib/ExecutionEngine/ExecutionEngine.cpp
index 96ca54a7112088c10c4564f0ad2d24a50fe85648..3d190aa0f81d5d66dbc892baff8023b2037c14a2 100644
(file)
--- a/
lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/
lib/ExecutionEngine/ExecutionEngine.cpp
@@
-213,6
+213,12
@@
void ExecutionEngine::emitGlobals() {
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!");