[lld] r240031 - COFF: Rename a function. NFC.
Rui Ueyama
ruiu at google.com
Thu Jun 18 10:29:51 PDT 2015
Author: ruiu
Date: Thu Jun 18 12:29:50 2015
New Revision: 240031
URL: http://llvm.org/viewvc/llvm-project?rev=240031&view=rev
Log:
COFF: Rename a function. NFC.
Modified:
lld/trunk/COFF/SymbolTable.cpp
lld/trunk/COFF/SymbolTable.h
Modified: lld/trunk/COFF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/SymbolTable.cpp?rev=240031&r1=240030&r2=240031&view=diff
==============================================================================
--- lld/trunk/COFF/SymbolTable.cpp (original)
+++ lld/trunk/COFF/SymbolTable.cpp Thu Jun 18 12:29:50 2015
@@ -187,7 +187,7 @@ Defined *SymbolTable::find(StringRef Nam
return nullptr;
}
-std::error_code SymbolTable::resolveIfPossible(StringRef Name) {
+std::error_code SymbolTable::resolveLazy(StringRef Name) {
auto It = Symtab.find(Name);
if (It != Symtab.end())
if (auto *B = dyn_cast<Lazy>(It->second->Body))
@@ -213,7 +213,7 @@ ErrorOr<StringRef> SymbolTable::findDefa
{"wWinMain", "wWinMainCRTStartup"},
};
for (auto E : Entries) {
- resolveIfPossible(E[1]);
+ resolveLazy(E[1]);
if (find(E[1]))
return StringRef(E[1]);
if (!find(E[0]))
Modified: lld/trunk/COFF/SymbolTable.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/SymbolTable.h?rev=240031&r1=240030&r2=240031&view=diff
==============================================================================
--- lld/trunk/COFF/SymbolTable.h (original)
+++ lld/trunk/COFF/SymbolTable.h Thu Jun 18 12:29:50 2015
@@ -88,7 +88,7 @@ private:
std::error_code addBitcode(BitcodeFile *File);
std::error_code resolve(SymbolBody *Body);
- std::error_code resolveIfPossible(StringRef Name);
+ std::error_code resolveLazy(StringRef Name);
std::error_code addMemberFile(Lazy *Body);
ErrorOr<ObjectFile *> createLTOObject(llvm::LTOCodeGenerator *CG);
More information about the llvm-commits
mailing list