[lld] r205403 - Use cast<T> instead of dyn_cast<T>.
Rui Ueyama
ruiu at google.com
Tue Apr 1 23:54:43 PDT 2014
Author: ruiu
Date: Wed Apr 2 01:54:43 2014
New Revision: 205403
URL: http://llvm.org/viewvc/llvm-project?rev=205403&view=rev
Log:
Use cast<T> instead of dyn_cast<T>.
Modified:
lld/trunk/lib/Core/Resolver.cpp
Modified: lld/trunk/lib/Core/Resolver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Resolver.cpp?rev=205403&r1=205402&r2=205403&view=diff
==============================================================================
--- lld/trunk/lib/Core/Resolver.cpp (original)
+++ lld/trunk/lib/Core/Resolver.cpp Wed Apr 2 01:54:43 2014
@@ -137,7 +137,7 @@ void Resolver::forEachUndefines(UndefCal
}
void Resolver::handleArchiveFile(const File &file) {
- const ArchiveLibraryFile *archiveFile = dyn_cast<ArchiveLibraryFile>(&file);
+ const ArchiveLibraryFile *archiveFile = cast<ArchiveLibraryFile>(&file);
auto callback = [&](StringRef undefName, bool dataSymbolOnly) {
if (const File *member = archiveFile->find(undefName, dataSymbolOnly)) {
member->setOrdinal(_context.getNextOrdinalAndIncrement());
@@ -151,7 +151,7 @@ void Resolver::handleArchiveFile(const F
void Resolver::handleSharedLibrary(const File &file) {
// Add all the atoms from the shared library
- const SharedLibraryFile *sharedLibrary = dyn_cast<SharedLibraryFile>(&file);
+ const SharedLibraryFile *sharedLibrary = cast<SharedLibraryFile>(&file);
handleFile(*sharedLibrary);
auto callback = [&](StringRef undefName, bool dataSymbolOnly) {
More information about the llvm-commits
mailing list