diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-10-18 11:53:05 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-10-18 11:53:05 +0000 |
commit | 38ffcc93eba3537486fa548ad61787ede6a9d31d (patch) | |
tree | f2d68d78830dc8b46a0afe78007b8f0c85855705 /lib | |
parent | 9bb4ea03be6fbf2fadf4727e6fad95782cbbf25b (diff) | |
download | external_llvm-38ffcc93eba3537486fa548ad61787ede6a9d31d.zip external_llvm-38ffcc93eba3537486fa548ad61787ede6a9d31d.tar.gz external_llvm-38ffcc93eba3537486fa548ad61787ede6a9d31d.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/TargetMachineRegistry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/TargetMachineRegistry.cpp b/lib/Target/TargetMachineRegistry.cpp index 077b7e8..3b43eb8 100644 --- a/lib/Target/TargetMachineRegistry.cpp +++ b/lib/Target/TargetMachineRegistry.cpp @@ -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)); |