[llvm-commits] [llvm] r153598 - /llvm/trunk/tools/lto/LTOModule.cpp
Bill Wendling
isanbard at gmail.com
Wed Mar 28 13:48:50 PDT 2012
Author: void
Date: Wed Mar 28 15:48:49 2012
New Revision: 153598
URL: http://llvm.org/viewvc/llvm-project?rev=153598&view=rev
Log:
Inline function into its one caller.
Modified:
llvm/trunk/tools/lto/LTOModule.cpp
Modified: llvm/trunk/tools/lto/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOModule.cpp?rev=153598&r1=153597&r2=153598&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOModule.cpp (original)
+++ llvm/trunk/tools/lto/LTOModule.cpp Wed Mar 28 15:48:49 2012
@@ -662,12 +662,6 @@
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 @@
// 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);
More information about the llvm-commits
mailing list