Inline function into its one caller.
authorBill Wendling <isanbard@gmail.com>
Wed, 28 Mar 2012 20:48:49 +0000 (20:48 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 28 Mar 2012 20:48:49 +0000 (20:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153598 91177308-0d34-0410-b5e6-96231b3b80d8

tools/lto/LTOModule.cpp

index 5e51da0c37d7afcc6d2333b6b457ea78a9de0bc0..aa5aacd42219f72fca0ca336b22444482672df71 100644 (file)
@@ -662,12 +662,6 @@ static bool isDeclaration(const GlobalValue &V) {
   return V.isDeclaration();
 }
 
-/// isAliasToDeclaration - Return 'true' if the global value is an alias to a
-/// declaration.
-static bool isAliasToDeclaration(const GlobalAlias &V) {
-  return isDeclaration(*V.getAliasedGlobal());
-}
-
 /// ParseSymbols - Parse the symbols from the module and model-level ASM and add
 /// them to either the defined or undefined lists.
 bool LTOModule::ParseSymbols(std::string &errMsg) {
@@ -695,7 +689,8 @@ bool LTOModule::ParseSymbols(std::string &errMsg) {
   // add aliases
   for (Module::alias_iterator i = _module->alias_begin(),
          e = _module->alias_end(); i != e; ++i) {
-    if (isAliasToDeclaration(*i))
+    if (isDeclaration(*i->getAliasedGlobal()))
+      // Is an alias to a declaration.
       addPotentialUndefinedSymbol(i);
     else
       addDefinedDataSymbol(i);