summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-24 19:50:12 +0000
committerChris Lattner <sabre@nondot.org>2003-08-24 19:50:12 +0000
commit9cb8d7d0acfc1889276f706c4ad8a589439b41fa (patch)
tree851737664684f7971eed4b68c90900f679c47d9f /llvm
parent4fd144acc8281432d588245ed84236a3ab724595 (diff)
downloadbcm5719-llvm-9cb8d7d0acfc1889276f706c4ad8a589439b41fa.tar.gz
bcm5719-llvm-9cb8d7d0acfc1889276f706c4ad8a589439b41fa.zip
Targets now configure themselves with the module, not flags
llvm-svn: 8133
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/llc/llc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index 631ac99bd6c..96733433067 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/tools/llc/llc.cpp
@@ -68,7 +68,7 @@ int main(int argc, char **argv) {
// 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 @@ int main(int argc, char **argv) {
}
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();
OpenPOWER on IntegriCloud