diff options
Diffstat (limited to 'include/llvm/GlobalValue.h')
-rw-r--r-- | include/llvm/GlobalValue.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/GlobalValue.h b/include/llvm/GlobalValue.h index f57b23f1d7..b0e58d4451 100644 --- a/include/llvm/GlobalValue.h +++ b/include/llvm/GlobalValue.h @@ -111,9 +111,10 @@ public: void setLinkage(LinkageTypes LT) { Linkage = LT; } LinkageTypes getLinkage() const { return Linkage; } - /// isWeakForLinker - Determines if symbol is weak for linker having weak or - /// linkonce or common or extweak LLVM linkage. - bool isWeakForLinker() const { + /// mayBeOverridden - Whether the definition of this global may be replaced + /// at link time. For example, if a function has weak linkage then the code + /// defining it may be replaced by different code. + bool mayBeOverridden() const { return (Linkage == WeakLinkage || Linkage == LinkOnceLinkage || Linkage == CommonLinkage || |