summaryrefslogtreecommitdiff
path: root/tools/llc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-23 05:28:02 +0000
committerChris Lattner <sabre@nondot.org>2006-03-23 05:28:02 +0000
commitef98691ca3a3b765b18b24ec9e01000e9e1b6bd6 (patch)
tree1433c3a7b7c999942896f2e0dc10dace137755b9 /tools/llc
parent726c1ef2bdd72975f41e3188371bb7d6f40401be (diff)
downloadllvm-ef98691ca3a3b765b18b24ec9e01000e9e1b6bd6.tar.gz
llvm-ef98691ca3a3b765b18b24ec9e01000e9e1b6bd6.tar.bz2
llvm-ef98691ca3a3b765b18b24ec9e01000e9e1b6bd6.tar.xz
remove always-null IntrinsicLowering argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/llc.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index 30a4880bb7..357eedd0b6 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -119,8 +119,6 @@ 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&,
- IntrinsicLowering *) = 0;
if (MArch == 0) {
std::string Err;
MArch = TargetMachineRegistry::getClosestStaticTargetForModule(mod, Err);
@@ -142,7 +140,7 @@ int main(int argc, char **argv) {
FeaturesStr = Features.getString();
}
- std::auto_ptr<TargetMachine> target(MArch->CtorFn(mod, 0, FeaturesStr));
+ std::auto_ptr<TargetMachine> target(MArch->CtorFn(mod, FeaturesStr));
assert(target.get() && "Could not allocate target machine!");
TargetMachine &Target = *target.get();
const TargetData &TD = Target.getTargetData();