diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-10-28 02:24:59 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-10-28 02:24:59 +0000 |
commit | 58fbc916a0a4ad57ec6d3dd1d1a4f0dd7405f69f (patch) | |
tree | 6c24d54562b0745abfad0d5afd9c1ce6d18baa96 /llvm/lib/Transforms/IPO/FunctionImport.cpp | |
parent | 6231a7e4d1e2e004c4a0889353b4155130ec47d8 (diff) | |
download | bcm5719-llvm-58fbc916a0a4ad57ec6d3dd1d1a4f0dd7405f69f.tar.gz bcm5719-llvm-58fbc916a0a4ad57ec6d3dd1d1a4f0dd7405f69f.zip |
[ThinLTO] Rename HasSection to NoRename (NFC)
Summary:
This is in preparation for a change to utilize this flag for symbols
referenced/defined in either inline or module level assembly.
Reviewers: mehdi_amini
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D26048
llvm-svn: 285376
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionImport.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionImport.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index 29c54dc9f9c..c9f4ea06a90 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -111,8 +111,9 @@ static bool canBeExternallyReferenced(const GlobalValueSummary &Summary) { if (!Summary.needsRenaming()) return true; - if (Summary.hasSection()) - // Can't rename a global that needs renaming if has a section. + if (Summary.noRename()) + // Can't externally reference a global that needs renaming if has a section + // or is referenced from inline assembly, for example. return false; return true; |