[llvm-commits] CVS: llvm/tools/llc/llc.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 24 14:51:02 PDT 2003
Changes in directory llvm/tools/llc:
llc.cpp updated: 1.81 -> 1.82
---
Log message:
Targets now configure themselves with the module, not flags
---
Diffs of the changes:
Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.81 llvm/tools/llc/llc.cpp:1.82
--- llvm/tools/llc/llc.cpp:1.81 Sun Aug 24 09:02:14 2003
+++ llvm/tools/llc/llc.cpp Sun Aug 24 14:50:12 2003
@@ -68,7 +68,7 @@
// Allocate target machine. First, check whether the user has
// explicitly specified an architecture to compile for.
- TargetMachine* (*TargetMachineAllocator)(unsigned) = 0;
+ TargetMachine* (*TargetMachineAllocator)(const Module&) = 0;
switch (Arch) {
case x86:
TargetMachineAllocator = allocateX86TargetMachine;
@@ -102,7 +102,7 @@
}
break;
}
- std::auto_ptr<TargetMachine> target((*TargetMachineAllocator)(0));
+ std::auto_ptr<TargetMachine> target(TargetMachineAllocator(mod));
assert(target.get() && "Could not allocate target machine!");
TargetMachine &Target = *target.get();
const TargetData &TD = Target.getTargetData();
More information about the llvm-commits
mailing list