diff options
-rw-r--r-- | tools/llc/llc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 631ac99bd6..9673343306 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(); |