Don't create undefined symbols for aliases.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75111 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp
index 9c8baef..c4980d6 100644
--- a/tools/lto/LTOModule.cpp
+++ b/tools/lto/LTOModule.cpp
@@ -325,7 +325,7 @@
 
 
 void LTOModule::addDefinedSymbol(GlobalValue* def, Mangler &mangler, 
-                                bool isFunction)
+                                 bool isFunction)
 {    
     // ignore all llvm.* symbols
     if ( strncmp(def->getNameStart(), "llvm.", 5) == 0 )
@@ -401,6 +401,10 @@
     if ( strncmp(decl->getNameStart(), "llvm.", 5) == 0 )
         return;
 
+    // ignore all aliases
+    if (isa<GlobalAlias>(decl))
+        return;
+
     const char* name = mangler.getValueName(decl).c_str();
 
     // we already have the symbol
@@ -539,4 +543,3 @@
     else
         return NULL;
 }
-