mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
No really, it's unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78047 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a277f4e33d
commit
4b3d57228c
@ -76,8 +76,7 @@ TargetMachine *JIT::selectTarget(ModuleProvider *MP, std::string *ErrorStr) {
|
||||
|
||||
// Allocate a target...
|
||||
TargetMachine *Target =
|
||||
TheTarget->createTargetMachine(*MP->getModule(), TheTriple.getTriple(),
|
||||
FeaturesStr);
|
||||
TheTarget->createTargetMachine(TheTriple.getTriple(), FeaturesStr);
|
||||
assert(Target && "Could not allocate target machine!");
|
||||
return Target;
|
||||
}
|
||||
|
@ -3190,8 +3190,7 @@ std::string CWriter::InterpretASMConstraint(InlineAsm::ConstraintInfo& c) {
|
||||
if (Match) {
|
||||
// Per platform Target Machines don't exist, so create it;
|
||||
// this must be done only once.
|
||||
const TargetMachine* TM = Match->createTargetMachine(*TheModule, Triple,
|
||||
"");
|
||||
const TargetMachine* TM = Match->createTargetMachine(Triple, "");
|
||||
TAsm = TM->getTargetAsmInfo();
|
||||
}
|
||||
}
|
||||
|
@ -285,8 +285,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
std::auto_ptr<TargetMachine>
|
||||
target(TheTarget->createTargetMachine(mod, TheTriple.getTriple(),
|
||||
FeaturesStr));
|
||||
target(TheTarget->createTargetMachine(TheTriple.getTriple(), FeaturesStr));
|
||||
assert(target.get() && "Could not allocate target machine!");
|
||||
TargetMachine &Target = *target.get();
|
||||
|
||||
|
@ -322,7 +322,6 @@ bool LTOCodeGenerator::determineTarget(std::string& errMsg)
|
||||
Triple = sys::getHostTriple();
|
||||
|
||||
// create target machine from info for merged modules
|
||||
Module* mergedModule = _linker.getModule();
|
||||
const Target *march = TargetRegistry::lookupTarget(Triple, errMsg);
|
||||
if ( march == NULL )
|
||||
return true;
|
||||
@ -343,7 +342,7 @@ bool LTOCodeGenerator::determineTarget(std::string& errMsg)
|
||||
|
||||
// construct LTModule, hand over ownership of module and target
|
||||
std::string FeatureStr = getFeatureString(Triple.c_str());
|
||||
_target = march->createTargetMachine(*mergedModule, Triple, FeatureStr);
|
||||
_target = march->createTargetMachine(Triple, FeatureStr);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ LTOModule* LTOModule::makeLTOModule(MemoryBuffer* buffer,
|
||||
|
||||
// construct LTModule, hand over ownership of module and target
|
||||
std::string FeatureStr = getFeatureString(Triple.c_str());
|
||||
TargetMachine* target = march->createTargetMachine(*m, Triple, FeatureStr);
|
||||
TargetMachine* target = march->createTargetMachine(Triple, FeatureStr);
|
||||
return new LTOModule(m.take(), target);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user