CodeGen: use pointer rather than reference in range loop

Address post-commit comments from Justin Bogner.  Explicitly indicate
that the dereferenced iterator provides a pointer rather than a
reference.  NFC.

llvm-svn: 281730
This commit is contained in:
Saleem Abdulrasool 2016-09-16 14:24:26 +00:00
parent 1d56e888c9
commit 39217d4d05
1 changed files with 2 additions and 2 deletions

View File

@ -5186,10 +5186,10 @@ void CGObjCMac::FinishModule() {
Asm += '\n';
llvm::raw_svector_ostream OS(Asm);
for (const auto &Sym : DefinedSymbols)
for (const auto *Sym : DefinedSymbols)
OS << "\t.objc_class_name_" << Sym->getName() << "=0\n"
<< "\t.globl .objc_class_name_" << Sym->getName() << "\n";
for (const auto &Sym : LazySymbols)
for (const auto *Sym : LazySymbols)
OS << "\t.lazy_reference .objc_class_name_" << Sym->getName() << "\n";
for (const auto &Category : DefinedCategoryNames)
OS << "\t.objc_category_name_" << Category << "=0\n"