mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 23:29:20 +00:00
Work around downrev gccs which do not inherit visibility of the
Registry<>::iterator member class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43122 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9bb4ea03be
commit
38ffcc93eb
@ -32,7 +32,7 @@ const TargetMachineRegistry::entry *
|
||||
TargetMachineRegistry::getClosestStaticTargetForModule(const Module &M,
|
||||
std::string &Error) {
|
||||
std::vector<std::pair<unsigned, const entry *> > UsableTargets;
|
||||
for (iterator I = begin(), E = end(); I != E; ++I)
|
||||
for (Registry<TargetMachine>::iterator I = begin(), E = end(); I != E; ++I)
|
||||
if (unsigned Qual = I->ModuleMatchQualityFn(M))
|
||||
UsableTargets.push_back(std::make_pair(Qual, &*I));
|
||||
|
||||
@ -60,7 +60,7 @@ TargetMachineRegistry::getClosestStaticTargetForModule(const Module &M,
|
||||
const TargetMachineRegistry::entry *
|
||||
TargetMachineRegistry::getClosestTargetForJIT(std::string &Error) {
|
||||
std::vector<std::pair<unsigned, const entry *> > UsableTargets;
|
||||
for (iterator I = begin(), E = end(); I != E; ++I)
|
||||
for (Registry<TargetMachine>::iterator I = begin(), E = end(); I != E; ++I)
|
||||
if (unsigned Qual = I->JITMatchQualityFn())
|
||||
UsableTargets.push_back(std::make_pair(Qual, &*I));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user