aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-04-18 11:31:38 -0700
committerFangrui Song <maskray@google.com>2020-04-18 12:49:31 -0700
commitaad3d578da0ddf6d0d3d95e5e09a32e47f6dfeb8 (patch)
treebf226a10aaa30fe6e0755ed1387540dad50851c4 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentecddafd84a7aa74fb8c4087926db16eb1c459028 (diff)
downloadllvm-aad3d578da0ddf6d0d3d95e5e09a32e47f6dfeb8.zip
llvm-aad3d578da0ddf6d0d3d95e5e09a32e47f6dfeb8.tar.gz
llvm-aad3d578da0ddf6d0d3d95e5e09a32e47f6dfeb8.tar.bz2
[DebugInfo] Change DIEnumerator payload type from int64_t to APInt
This allows the representation of arbitrarily large enumeration values. See https://lists.llvm.org/pipermail/llvm-dev/2017-December/119475.html for context. Reviewed By: andrewrk, aprantl, MaskRay Differential Revision: https://reviews.llvm.org/D62475
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 8f7f980..4b8b0ec 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -2317,7 +2317,7 @@ Error BitcodeReader::resolveGlobalAndIndirectSymbolInits() {
return Error::success();
}
-static APInt readWideAPInt(ArrayRef<uint64_t> Vals, unsigned TypeBits) {
+APInt llvm::readWideAPInt(ArrayRef<uint64_t> Vals, unsigned TypeBits) {
SmallVector<uint64_t, 8> Words(Vals.size());
transform(Vals, Words.begin(),
BitcodeReader::decodeSignRotatedValue);