aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.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/Writer/BitcodeWriter.cpp
parente5f2bfaea9d96c93ff0ca8b5c986092a9a488c47 (diff)
downloadllvm-1380edf4ef9469e2dda07020436a1b229c1ad804.zip
llvm-1380edf4ef9469e2dda07020436a1b229c1ad804.tar.gz
llvm-1380edf4ef9469e2dda07020436a1b229c1ad804.tar.bz2
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/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index bdb57f5..4eac89c 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -971,13 +971,13 @@ static unsigned getEncodedLinkage(const GlobalValue &GV) {
static uint64_t getEncodedGVSummaryFlags(GlobalValueSummary::GVFlags Flags) {
uint64_t RawFlags = 0;
+ RawFlags |= Flags.NotEligibleToImport; // bool
+ RawFlags |= (Flags.LiveRoot << 1);
// Linkage don't need to be remapped at that time for the summary. Any future
// change to the getEncodedLinkage() function will need to be taken into
// account here as well.
- RawFlags |= Flags.Linkage; // 4 bits linkage
- RawFlags |= (Flags.NotEligibleToImport << 4); // bool
- RawFlags |= (Flags.LiveRoot << 5); // bool
- RawFlags |= (Flags.AutoHide << 6); // bool
+ RawFlags = (RawFlags << 4) | Flags.Linkage; // 4 bits
+
return RawFlags;
}