mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +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...
|
// Allocate a target...
|
||||||
TargetMachine *Target =
|
TargetMachine *Target =
|
||||||
TheTarget->createTargetMachine(*MP->getModule(), TheTriple.getTriple(),
|
TheTarget->createTargetMachine(TheTriple.getTriple(), FeaturesStr);
|
||||||
FeaturesStr);
|
|
||||||
assert(Target && "Could not allocate target machine!");
|
assert(Target && "Could not allocate target machine!");
|
||||||
return Target;
|
return Target;
|
||||||
}
|
}
|
||||||
|
@ -3190,8 +3190,7 @@ std::string CWriter::InterpretASMConstraint(InlineAsm::ConstraintInfo& c) {
|
|||||||
if (Match) {
|
if (Match) {
|
||||||
// Per platform Target Machines don't exist, so create it;
|
// Per platform Target Machines don't exist, so create it;
|
||||||
// this must be done only once.
|
// this must be done only once.
|
||||||
const TargetMachine* TM = Match->createTargetMachine(*TheModule, Triple,
|
const TargetMachine* TM = Match->createTargetMachine(Triple, "");
|
||||||
"");
|
|
||||||
TAsm = TM->getTargetAsmInfo();
|
TAsm = TM->getTargetAsmInfo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -285,8 +285,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::auto_ptr<TargetMachine>
|
std::auto_ptr<TargetMachine>
|
||||||
target(TheTarget->createTargetMachine(mod, TheTriple.getTriple(),
|
target(TheTarget->createTargetMachine(TheTriple.getTriple(), FeaturesStr));
|
||||||
FeaturesStr));
|
|
||||||
assert(target.get() && "Could not allocate target machine!");
|
assert(target.get() && "Could not allocate target machine!");
|
||||||
TargetMachine &Target = *target.get();
|
TargetMachine &Target = *target.get();
|
||||||
|
|
||||||
|
@ -322,7 +322,6 @@ bool LTOCodeGenerator::determineTarget(std::string& errMsg)
|
|||||||
Triple = sys::getHostTriple();
|
Triple = sys::getHostTriple();
|
||||||
|
|
||||||
// create target machine from info for merged modules
|
// create target machine from info for merged modules
|
||||||
Module* mergedModule = _linker.getModule();
|
|
||||||
const Target *march = TargetRegistry::lookupTarget(Triple, errMsg);
|
const Target *march = TargetRegistry::lookupTarget(Triple, errMsg);
|
||||||
if ( march == NULL )
|
if ( march == NULL )
|
||||||
return true;
|
return true;
|
||||||
@ -343,7 +342,7 @@ bool LTOCodeGenerator::determineTarget(std::string& errMsg)
|
|||||||
|
|
||||||
// construct LTModule, hand over ownership of module and target
|
// construct LTModule, hand over ownership of module and target
|
||||||
std::string FeatureStr = getFeatureString(Triple.c_str());
|
std::string FeatureStr = getFeatureString(Triple.c_str());
|
||||||
_target = march->createTargetMachine(*mergedModule, Triple, FeatureStr);
|
_target = march->createTargetMachine(Triple, FeatureStr);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -162,7 +162,7 @@ LTOModule* LTOModule::makeLTOModule(MemoryBuffer* buffer,
|
|||||||
|
|
||||||
// construct LTModule, hand over ownership of module and target
|
// construct LTModule, hand over ownership of module and target
|
||||||
std::string FeatureStr = getFeatureString(Triple.c_str());
|
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);
|
return new LTOModule(m.take(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user