summaryrefslogtreecommitdiff
path: root/tools/llc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-28 09:51:04 +0000
committerChris Lattner <sabre@nondot.org>2003-12-28 09:51:04 +0000
commit6fb6ce3148ec4a9aaab47800da2365d7f60a6f5b (patch)
treeff89dde901587d11c5771d4c7fe9ca7ef9bb2622 /tools/llc
parentcd824d7678785379a4a11fd7e3099cc44b37db41 (diff)
downloadllvm-6fb6ce3148ec4a9aaab47800da2365d7f60a6f5b.tar.gz
llvm-6fb6ce3148ec4a9aaab47800da2365d7f60a6f5b.tar.bz2
llvm-6fb6ce3148ec4a9aaab47800da2365d7f60a6f5b.tar.xz
Pass extra arguments around n stuph
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10631 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/llc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index f219b6ea16..eae891bf1f 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -78,7 +78,8 @@ int main(int argc, char **argv) {
// Allocate target machine. First, check whether the user has
// explicitly specified an architecture to compile for.
- TargetMachine* (*TargetMachineAllocator)(const Module&) = 0;
+ TargetMachine* (*TargetMachineAllocator)(const Module&,
+ IntrinsicLowering *) = 0;
switch (Arch) {
case x86:
TargetMachineAllocator = allocateX86TargetMachine;
@@ -112,7 +113,7 @@ int main(int argc, char **argv) {
}
break;
}
- std::auto_ptr<TargetMachine> target(TargetMachineAllocator(mod));
+ std::auto_ptr<TargetMachine> target(TargetMachineAllocator(mod, 0));
assert(target.get() && "Could not allocate target machine!");
TargetMachine &Target = *target.get();
const TargetData &TD = Target.getTargetData();