mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
Make stderr, stdout, stdin work with LLI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5832 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
04e2ad76f8
commit
59ee0eeffd
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user