diff options
| author | Misha Brukman <brukman+llvm@gmail.com> | 2003-05-27 21:40:39 +0000 |
|---|---|---|
| committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-05-27 21:40:39 +0000 |
| commit | 56d27325c0fa36383c5c4e9857309d8877e58546 (patch) | |
| tree | 02ad09c50e76f208cc2badb5e60058c4f0a027ad /llvm/lib/ExecutionEngine/JIT/Emitter.cpp | |
| parent | ecf2020cf7c8477782bc2c07283f23621cd3a2b2 (diff) | |
| download | bcm5719-llvm-56d27325c0fa36383c5c4e9857309d8877e58546.tar.gz bcm5719-llvm-56d27325c0fa36383c5c4e9857309d8877e58546.zip | |
Allow for specification of which JIT to run on the commandline.
`lli -march=x86' or `lli -march=sparc' will forcefully select the JIT even on a
different platform. Running lli without the -march option will select the JIT
for the platform that it's currently running on.
Pro: can test Sparc JIT (debug printing mode) on X86 -- faster to compile/link
LLVM source base to test changes.
Con: Linking lli on x86 now pulls in all the Sparc libs -> longer link time
(but X86 can bear it, right?)
In the future, perhaps this should be a ./configure option to enable/disable
target JITting...
llvm-svn: 6360
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/Emitter.cpp')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/Emitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp index f6f6b30f0f2..e6fe09b135e 100644 --- a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp @@ -48,7 +48,7 @@ namespace { }; } -MachineCodeEmitter *VM::createEmitter(VM &V) { +MachineCodeEmitter *VM::createX86Emitter(VM &V) { return new Emitter(V); } |

