[lld] r207875 - Don't use "auto" where the actual type is not obvious.
Rui Ueyama
ruiu at google.com
Fri May 2 14:48:01 PDT 2014
Author: ruiu
Date: Fri May 2 16:48:01 2014
New Revision: 207875
URL: http://llvm.org/viewvc/llvm-project?rev=207875&view=rev
Log:
Don't use "auto" where the actual type is not obvious.
Modified:
lld/trunk/lib/Core/LinkingContext.cpp
Modified: lld/trunk/lib/Core/LinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/LinkingContext.cpp?rev=207875&r1=207874&r2=207875&view=diff
==============================================================================
--- lld/trunk/lib/Core/LinkingContext.cpp (original)
+++ lld/trunk/lib/Core/LinkingContext.cpp Fri May 2 16:48:01 2014
@@ -65,9 +65,9 @@ LinkingContext::createUndefinedSymbolFil
if (_initialUndefinedSymbols.empty())
return nullptr;
std::unique_ptr<SimpleFile> undefinedSymFile(new SimpleFile(filename));
- for (auto undefSymStr : _initialUndefinedSymbols)
+ for (StringRef undefSym : _initialUndefinedSymbols)
undefinedSymFile->addAtom(*(new (_allocator) SimpleUndefinedAtom(
- *undefinedSymFile, undefSymStr)));
+ *undefinedSymFile, undefSym)));
return std::move(undefinedSymFile);
}
More information about the llvm-commits
mailing list