summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-04-24 05:31:43 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-04-24 05:31:43 +0000
commitca2c54e04e7e2a7e59058d56c2f2bd6c2758c171 (patch)
treec5b4d24d35d29f6111c90e5b2fdf2eda8fb55058 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent01b3a6184aae0b5ef1e2cccd4bb8da8d6a0df68a (diff)
downloadbcm5719-llvm-ca2c54e04e7e2a7e59058d56c2f2bd6c2758c171.tar.gz
bcm5719-llvm-ca2c54e04e7e2a7e59058d56c2f2bd6c2758c171.zip
Add "hasSection" flag in the Summary
Reviewers: tejohnson Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D19405 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 267329
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 0e29c0e77d7..b8db3e8feea 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -745,7 +745,9 @@ 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
- return GlobalValueSummary::GVFlags(Linkage);
+ RawFlags = RawFlags >> 4;
+ auto HasSection = RawFlags & 0x1; // bool
+ return GlobalValueSummary::GVFlags(Linkage, HasSection);
}
static GlobalValue::VisibilityTypes getDecodedVisibility(unsigned Val) {
OpenPOWER on IntegriCloud