aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/TargetLoweringObjectFile.cpp
diff options
context:
space:
mode:
authorXiangling Liao <Xiangling.Liao@ibm.com>2020-05-29 11:41:10 -0400
committerXiangling Liao <Xiangling.Liao@ibm.com>2020-05-29 13:12:59 -0400
commit26604d06b6fe10bb047a3620cf306be8648dcc20 (patch)
tree28f0948897aa5699c034683d0cb573c5f1ddf5b2 /llvm/lib/Target/TargetLoweringObjectFile.cpp
parentb82a95f8bc91976a9ba663f8fa2edf15708b5c0f (diff)
downloadllvm-26604d06b6fe10bb047a3620cf306be8648dcc20.zip
llvm-26604d06b6fe10bb047a3620cf306be8648dcc20.tar.gz
llvm-26604d06b6fe10bb047a3620cf306be8648dcc20.tar.bz2
[AIX] Emit AvailableExternally Linkage on AIX
Since on AIX, our strategy is to not use -u to suppress any undefined symbols, we need to emit .extern for the symbols with AvailableExternally linkage. Differential Revision: https://reviews.llvm.org/D80642
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index bd25660..eea0aee 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -143,7 +143,7 @@ void TargetLoweringObjectFile::emitPersonalityValue(MCStreamer &Streamer,
/// may be overridden by the target implementation.
SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalObject *GO,
const TargetMachine &TM){
- assert(!GO->isDeclaration() && !GO->hasAvailableExternallyLinkage() &&
+ assert(!GO->isDeclarationForLinker() &&
"Can only be used for global definitions");
// Functions are classified as text sections.