Typo: 'function' => 'alias'
authorAnton Korobeynikov <asl@math.spbu.ru>
Mon, 10 Mar 2008 22:36:35 +0000 (22:36 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Mon, 10 Mar 2008 22:36:35 +0000 (22:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48183 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkModules.cpp

index 8d8c0700fd89c371869d239fba33009e0b675953..53fce4893fd0aad37f601931918c7e5fed9a6dd2 100644 (file)
@@ -717,9 +717,8 @@ static bool LinkAlias(Module *Dest, const Module *Src,
 
     assert(NewGA && "No alias was created in destination module!");
 
-    // If the symbol table renamed the function, but it is an externally
-    // visible symbol, DGV must be an existing function with internal
-    // linkage. Rename it.
+    // If the symbol table renamed the alias, but it is an externally visible
+    // symbol, DGV must be an global value with internal linkage. Rename it.
     if (NewGA->getName() != SGA->getName() &&
         !NewGA->hasInternalLinkage())
       ForceRenaming(NewGA, SGA->getName());