git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236990
91177308-0d34-0410-b5e6-
96231b3b80d8
llvm::InitializeAllTargetInfos();
llvm::TargetRegistry RegistryRoot;
- for (const auto &Target : RegistryRoot) {
- StringRef Name = Target.getName();
+ for (auto &I = TargetRegistry::begin(), &E = TargetRegistry::end();
+ I != E; ++I) {
+ StringRef Name = I->getName();
// There is really no way (at present) to ask a Target whether it targets
// a specific architecture, because the logic for that is buried in a
// predicate.