aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ModuleSymbolTable.cpp
diff options
context:
space:
mode:
authorItay Bookstein <ibookstein@gmail.com>2021-10-06 19:33:10 -0700
committerFangrui Song <i@maskray.me>2021-10-06 19:33:10 -0700
commit40ec1c0f16cb23f8b83fb3d28b195e83991defd9 (patch)
tree93fc4170ffa4d3014a61217cc4871d6ed6844583 /llvm/lib/Object/ModuleSymbolTable.cpp
parent6707a7d7e96ac23ba66f16bdb44927082d2fd4d3 (diff)
downloadllvm-40ec1c0f16cb23f8b83fb3d28b195e83991defd9.zip
llvm-40ec1c0f16cb23f8b83fb3d28b195e83991defd9.tar.gz
llvm-40ec1c0f16cb23f8b83fb3d28b195e83991defd9.tar.bz2
[IR][NFC] Rename getBaseObject to getAliaseeObject
To better reflect the meaning of the now-disambiguated {GlobalValue, GlobalAlias}::getBaseObject after breaking off GlobalIFunc::getResolverFunction (D109792), the function is renamed to getAliaseeObject.
Diffstat (limited to 'llvm/lib/Object/ModuleSymbolTable.cpp')
-rw-r--r--llvm/lib/Object/ModuleSymbolTable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/ModuleSymbolTable.cpp b/llvm/lib/Object/ModuleSymbolTable.cpp
index 5ae81c9..8ecd6698 100644
--- a/llvm/lib/Object/ModuleSymbolTable.cpp
+++ b/llvm/lib/Object/ModuleSymbolTable.cpp
@@ -204,7 +204,7 @@ uint32_t ModuleSymbolTable::getSymbolFlags(Symbol S) const {
if (GVar->isConstant())
Res |= BasicSymbolRef::SF_Const;
}
- if (isa_and_nonnull<Function>(GV->getBaseObject()) || isa<GlobalIFunc>(GV))
+ if (isa_and_nonnull<Function>(GV->getAliaseeObject()) || isa<GlobalIFunc>(GV))
Res |= BasicSymbolRef::SF_Executable;
if (isa<GlobalAlias>(GV))
Res |= BasicSymbolRef::SF_Indirect;