Merge pull request #605 from wilsonk/target
Update RustWrapper.cpp so that LLVM revision 134231 from June 30, 2011 at
This commit is contained in:
commit
5c9fb0bc98
1 changed files with 3 additions and 1 deletions
|
@ -85,7 +85,9 @@ extern "C" void LLVMRustWriteOutputFile(LLVMPassManagerRef PMR,
|
||||||
std::string Err;
|
std::string Err;
|
||||||
const Target *TheTarget = TargetRegistry::lookupTarget(triple, Err);
|
const Target *TheTarget = TargetRegistry::lookupTarget(triple, Err);
|
||||||
std::string FeaturesStr;
|
std::string FeaturesStr;
|
||||||
TargetMachine *Target = TheTarget->createTargetMachine(triple, FeaturesStr);
|
std::string Trip(triple);
|
||||||
|
std::string CPUStr = llvm::sys::getHostCPUName();
|
||||||
|
TargetMachine *Target = TheTarget->createTargetMachine(Trip, CPUStr, FeaturesStr);
|
||||||
bool NoVerify = false;
|
bool NoVerify = false;
|
||||||
PassManager *PM = unwrap<PassManager>(PMR);
|
PassManager *PM = unwrap<PassManager>(PMR);
|
||||||
std::string ErrorInfo;
|
std::string ErrorInfo;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue