llvm.org GIT mirror llvm / 61476d6
Inline function into its one caller. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153598 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
1 changed file(s) with 2 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
661661 return V.isDeclaration();
662662 }
663663
664 /// isAliasToDeclaration - Return 'true' if the global value is an alias to a
665 /// declaration.
666 static bool isAliasToDeclaration(const GlobalAlias &V) {
667 return isDeclaration(*V.getAliasedGlobal());
668 }
669
670664 /// ParseSymbols - Parse the symbols from the module and model-level ASM and add
671665 /// them to either the defined or undefined lists.
672666 bool LTOModule::ParseSymbols(std::string &errMsg) {
694688 // add aliases
695689 for (Module::alias_iterator i = _module->alias_begin(),
696690 e = _module->alias_end(); i != e; ++i) {
697 if (isAliasToDeclaration(*i))
691 if (isDeclaration(*i->getAliasedGlobal()))
692 // Is an alias to a declaration.
698693 addPotentialUndefinedSymbol(i);
699694 else
700695 addDefinedDataSymbol(i);