diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2017-02-02 23:20:36 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2017-02-02 23:20:36 +0000 |
commit | 21c89dc92096c176ce9c2930dedb817991a94331 (patch) | |
tree | 44d38ab25d656973aa8113da04a76bfab0e0e077 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | e4062dfd47d1817da8d4ea667df15c8bb5ab7b0e (diff) | |
download | llvm-21c89dc92096c176ce9c2930dedb817991a94331.zip llvm-21c89dc92096c176ce9c2930dedb817991a94331.tar.gz llvm-21c89dc92096c176ce9c2930dedb817991a94331.tar.bz2 |
Revert "[ThinLTO] Add an auto-hide feature"
This reverts commit r293918, one lld test does not pass.
llvm-svn: 293961
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 8 |
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; } |