Mercurial > projects > ldc
diff gen/main.cpp @ 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 | f9660d9cf2ba |
children | 3adcb70700cb |
line wrap: on
line diff
--- 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());