summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-04-02 06:54:43 +0000
committerRui Ueyama <ruiu@google.com>2014-04-02 06:54:43 +0000
commit0ca88e3863ff91e75f3027f68eea3155e98a8f1d (patch)
treeac615c44bf9c549d2ce1b3397182dc26246adba6
parentcd1d4193b3a9fe15b437f9e83d548d9f20609c4b (diff)
downloadbcm5719-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.cpp4
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) {
OpenPOWER on IntegriCloud