aboutsummaryrefslogtreecommitdiffstats
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
commit62c720a5bdd36b85dd497a1c3575db5731eca208 (patch)
tree4eda184321586a2af5af183ec9bcc9cb0bf686f5
parentbb144a892b51ee4dc53471c490bda28de3cbcd79 (diff)
downloadexternal_llvm-62c720a5bdd36b85dd497a1c3575db5731eca208.zip
external_llvm-62c720a5bdd36b85dd497a1c3575db5731eca208.tar.gz
external_llvm-62c720a5bdd36b85dd497a1c3575db5731eca208.tar.bz2
Targets now configure themselves with the module, not flags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8133 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/llc/llc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 631ac99..9673343 100644
--- a/tools/llc/llc.cpp
+++ b/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();