diff options
| author | Rui Ueyama <ruiu@google.com> | 2014-04-02 06:54:43 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2014-04-02 06:54:43 +0000 |
| commit | 0ca88e3863ff91e75f3027f68eea3155e98a8f1d (patch) | |
| tree | ac615c44bf9c549d2ce1b3397182dc26246adba6 | |
| parent | cd1d4193b3a9fe15b437f9e83d548d9f20609c4b (diff) | |
| download | bcm5719-llvm-0ca88e3863ff91e75f3027f68eea3155e98a8f1d.tar.gz bcm5719-llvm-0ca88e3863ff91e75f3027f68eea3155e98a8f1d.zip | |
Use cast<T> instead of dyn_cast<T>.
llvm-svn: 205403
| -rw-r--r-- | lld/lib/Core/Resolver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/Core/Resolver.cpp b/lld/lib/Core/Resolver.cpp index f7330f651d0..54b9e8eef20 100644 --- a/lld/lib/Core/Resolver.cpp +++ b/lld/lib/Core/Resolver.cpp @@ -137,7 +137,7 @@ void Resolver::forEachUndefines(UndefCallback callback, } 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 File &file) { 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) { |

