mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-05-13 10:36:07 +00:00
Inline function into its one caller.
llvm-svn: 153598
This commit is contained in:
parent
f5df00f0fb
commit
02297eee5b
@ -662,12 +662,6 @@ static bool isDeclaration(const GlobalValue &V) {
|
|||||||
return V.isDeclaration();
|
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
|
/// ParseSymbols - Parse the symbols from the module and model-level ASM and add
|
||||||
/// them to either the defined or undefined lists.
|
/// them to either the defined or undefined lists.
|
||||||
bool LTOModule::ParseSymbols(std::string &errMsg) {
|
bool LTOModule::ParseSymbols(std::string &errMsg) {
|
||||||
@ -695,7 +689,8 @@ bool LTOModule::ParseSymbols(std::string &errMsg) {
|
|||||||
// add aliases
|
// add aliases
|
||||||
for (Module::alias_iterator i = _module->alias_begin(),
|
for (Module::alias_iterator i = _module->alias_begin(),
|
||||||
e = _module->alias_end(); i != e; ++i) {
|
e = _module->alias_end(); i != e; ++i) {
|
||||||
if (isAliasToDeclaration(*i))
|
if (isDeclaration(*i->getAliasedGlobal()))
|
||||||
|
// Is an alias to a declaration.
|
||||||
addPotentialUndefinedSymbol(i);
|
addPotentialUndefinedSymbol(i);
|
||||||
else
|
else
|
||||||
addDefinedDataSymbol(i);
|
addDefinedDataSymbol(i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user