From 21c89dc92096c176ce9c2930dedb817991a94331 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Thu, 2 Feb 2017 23:20:36 +0000 Subject: Revert "[ThinLTO] Add an auto-hide feature" This reverts commit r293918, one lld test does not pass. llvm-svn: 293961 --- llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp') 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; } -- cgit v1.1