mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
getClosestStaticTargetForModule was replaced with lookupTarget
Build fix for LLVM r77111.
This commit is contained in:
parent
27a9f93767
commit
a31f3eb98f
2 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
|||
#include "gen/llvmhelpers.h"
|
||||
#include "gen/llvm.h"
|
||||
#include "llvm/Target/TargetMachineRegistry.h"
|
||||
|
||||
#include "mars.h"
|
||||
#include "init.h"
|
||||
|
|
|
@ -442,7 +442,7 @@ LDC_TARGETS
|
|||
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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue