summaryrefslogtreecommitdiff
path: root/tools/lto
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-03-28 20:48:49 +0000
committerBill Wendling <isanbard@gmail.com>2012-03-28 20:48:49 +0000
commit61476d6f90b772c0e6c725308199afe10743ce0e (patch)
treef844e4cab8f5a84dcf3417b47112356ea0865cd1 /tools/lto
parent663ee20cc4b13b6d37ad1578050d8c3cc31eeff5 (diff)
downloadllvm-61476d6f90b772c0e6c725308199afe10743ce0e.tar.gz
llvm-61476d6f90b772c0e6c725308199afe10743ce0e.tar.bz2
llvm-61476d6f90b772c0e6c725308199afe10743ce0e.tar.xz
Inline function into its one caller.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r--tools/lto/LTOModule.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp
index 5e51da0c37..aa5aacd422 100644
--- a/tools/lto/LTOModule.cpp
+++ b/tools/lto/LTOModule.cpp
@@ -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);