summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2017-02-03 07:41:43 +0000
committerMehdi Amini <mehdi.amini@apple.com>2017-02-03 07:41:43 +0000
commit1380edf4ef9469e2dda07020436a1b229c1ad804 (patch)
treeeb556ccc87157b8445f7f9c59051e9f1a9f755d7 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parente5f2bfaea9d96c93ff0ca8b5c986092a9a488c47 (diff)
downloadbcm5719-llvm-1380edf4ef9469e2dda07020436a1b229c1ad804.tar.gz
bcm5719-llvm-1380edf4ef9469e2dda07020436a1b229c1ad804.zip
Revert "[ThinLTO] Add an auto-hide feature"
This reverts commit r293970. After more discussion, this belongs to the linker side and there is no added value to do it at this level. llvm-svn: 293993
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index c9d2ad5c71b..a46e49ccde8 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -800,14 +800,13 @@ static GlobalValueSummary::GVFlags getDecodedGVSummaryFlags(uint64_t RawFlags,
// like getDecodedLinkage() above. Any future change to the linkage enum and
// to getDecodedLinkage() will need to be taken into account here as above.
auto Linkage = GlobalValue::LinkageTypes(RawFlags & 0xF); // 4 bits
- bool NotEligibleToImport = ((RawFlags >> 4) & 0x1) || Version < 3;
+ RawFlags = RawFlags >> 4;
+ bool NotEligibleToImport = (RawFlags & 0x1) || Version < 3;
// The LiveRoot flag wasn't introduced until version 3. For dead stripping
// to work correctly on earlier versions, we must conservatively treat all
// values as live.
- bool LiveRoot = ((RawFlags >> 5) & 0x1) || Version < 3;
- bool AutoHide = (RawFlags >> 6) & 0x1;
- return GlobalValueSummary::GVFlags(Linkage, NotEligibleToImport, LiveRoot,
- AutoHide);
+ bool LiveRoot = (RawFlags & 0x2) || Version < 3;
+ return GlobalValueSummary::GVFlags(Linkage, NotEligibleToImport, LiveRoot);
}
static GlobalValue::VisibilityTypes getDecodedVisibility(unsigned Val) {
OpenPOWER on IntegriCloud