[llvm-commits] CVS: llvm/tools/lli/JIT/JIT.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 24 14:52:01 PDT 2003
Changes in directory llvm/tools/lli/JIT:
JIT.cpp updated: 1.14 -> 1.15
---
Log message:
Targets now configure themselves based on the source module, not on the
ad-hoc "Config" flags
---
Diffs of the changes:
Index: llvm/tools/lli/JIT/JIT.cpp
diff -u llvm/tools/lli/JIT/JIT.cpp:1.14 llvm/tools/lli/JIT/JIT.cpp:1.15
--- llvm/tools/lli/JIT/JIT.cpp:1.14 Thu Aug 21 16:32:12 2003
+++ llvm/tools/lli/JIT/JIT.cpp Sun Aug 24 14:50:53 2003
@@ -44,9 +44,9 @@
/// createJIT - Create an return a new JIT compiler if there is one available
/// for the current target. Otherwise it returns null.
///
-ExecutionEngine *ExecutionEngine::createJIT(Module *M, unsigned Config) {
+ExecutionEngine *ExecutionEngine::createJIT(Module *M) {
- TargetMachine* (*TargetMachineAllocator)(unsigned) = 0;
+ TargetMachine* (*TargetMachineAllocator)(const Module &) = 0;
// Allow a command-line switch to override what *should* be the default target
// machine for this platform. This allows for debugging a Sparc JIT on X86 --
@@ -71,7 +71,7 @@
}
// Allocate a target...
- TargetMachine *Target = (*TargetMachineAllocator)(Config);
+ TargetMachine *Target = TargetMachineAllocator(*M);
assert(Target && "Could not allocate target machine!");
// Create the virtual machine object...
More information about the llvm-commits
mailing list