aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-10-28 02:24:59 +0000
committerTeresa Johnson <tejohnson@google.com>2016-10-28 02:24:59 +0000
commit58fbc916a0a4ad57ec6d3dd1d1a4f0dd7405f69f (patch)
tree6c24d54562b0745abfad0d5afd9c1ce6d18baa96 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent6231a7e4d1e2e004c4a0889353b4155130ec47d8 (diff)
downloadllvm-58fbc916a0a4ad57ec6d3dd1d1a4f0dd7405f69f.zip
llvm-58fbc916a0a4ad57ec6d3dd1d1a4f0dd7405f69f.tar.gz
llvm-58fbc916a0a4ad57ec6d3dd1d1a4f0dd7405f69f.tar.bz2
[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/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index f2af916..f224b04 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -838,9 +838,9 @@ static GlobalValueSummary::GVFlags getDecodedGVSummaryFlags(uint64_t RawFlags,
// to getDecodedLinkage() will need to be taken into account here as above.
auto Linkage = GlobalValue::LinkageTypes(RawFlags & 0xF); // 4 bits
RawFlags = RawFlags >> 4;
- bool HasSection = RawFlags & 0x1;
+ bool NoRename = RawFlags & 0x1;
bool IsNotViableToInline = RawFlags & 0x2;
- return GlobalValueSummary::GVFlags(Linkage, HasSection, IsNotViableToInline);
+ return GlobalValueSummary::GVFlags(Linkage, NoRename, IsNotViableToInline);
}
static GlobalValue::VisibilityTypes getDecodedVisibility(unsigned Val) {