Adapt to current llvm master.
This commit is contained in:
parent
811be20ec7
commit
b58ed53837
@ -89,7 +89,6 @@ std::unique_ptr<TargetMachine>
|
||||
std::string FeaturesStr;
|
||||
|
||||
TargetOptions Options = TargetOptions();
|
||||
Reloc::Model RelocModel = Reloc::Default;
|
||||
CodeModel::Model CMModel = CodeModel::JITDefault;
|
||||
CodeGenOpt::Level OptLevel = CodeGenOpt::Default;
|
||||
switch (CGOpt.OptimizationLevel) {
|
||||
@ -104,7 +103,8 @@ std::unique_ptr<TargetMachine>
|
||||
TM.reset(TheTarget->createTargetMachine(TheTriple.getTriple(),
|
||||
MCPU, FeaturesStr,
|
||||
Options,
|
||||
RelocModel, CMModel,
|
||||
Optional<Reloc::Model>(),
|
||||
CMModel,
|
||||
OptLevel));
|
||||
return TM;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user