From 62c720a5bdd36b85dd497a1c3575db5731eca208 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 24 Aug 2003 19:50:12 +0000 Subject: [PATCH] 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 --- tools/llc/llc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 631ac99bd6c..96733433067 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 target((*TargetMachineAllocator)(0)); + std::auto_ptr target(TargetMachineAllocator(mod)); assert(target.get() && "Could not allocate target machine!"); TargetMachine &Target = *target.get(); const TargetData &TD = Target.getTargetData(); -- 2.34.1