Mercurial > projects > ldc
changeset 1552:08c8ef491c97
getClosestStaticTargetForModule was replaced with lookupTarget
Build fix for LLVM r77111.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Tue, 28 Jul 2009 15:26:21 +0200 |
parents | ed0feda76820 |
children | f55ca8a1598c |
files | gen/llvmhelpers.cpp gen/main.cpp |
diffstat | 2 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp Mon Jul 27 11:44:01 2009 +0200 +++ b/gen/llvmhelpers.cpp Tue Jul 28 15:26:21 2009 +0200 @@ -1,6 +1,5 @@ #include "gen/llvmhelpers.h" #include "gen/llvm.h" -#include "llvm/Target/TargetMachineRegistry.h" #include "mars.h" #include "init.h"
--- a/gen/main.cpp Mon Jul 27 11:44:01 2009 +0200 +++ b/gen/main.cpp Tue Jul 28 15:26:21 2009 +0200 @@ -442,7 +442,7 @@ if (mArch.empty()) { std::string Err; - theTarget = llvm::TargetRegistry::getClosestStaticTargetForModule(mod, Err); + theTarget = llvm::TargetRegistry::lookupTarget(mod.getTargetTriple(), false, false, Err); if (theTarget == 0) { error("failed to auto-select target: %s, please use the -march option", Err.c_str());