aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Compression.cpp
diff options
context:
space:
mode:
authorAmy Huang <akhuang@google.com>2020-08-11 14:50:56 -0700
committerAmy Huang <akhuang@google.com>2020-08-11 14:50:56 -0700
commit54b6cca0f28484395ae43bcda4c9f929bc51cfe3 (patch)
tree176f43ebc47b736f62218f090eef1540a296fa0d /llvm/lib/Support/Compression.cpp
parent06d100a69a08632e6a553a7fb4d3750b55145946 (diff)
downloadllvm-54b6cca0f28484395ae43bcda4c9f929bc51cfe3.zip
llvm-54b6cca0f28484395ae43bcda4c9f929bc51cfe3.tar.gz
llvm-54b6cca0f28484395ae43bcda4c9f929bc51cfe3.tar.bz2
[globalopt] Change so that emitting fragments doesn't use the type size of DIVariables
When turning on -debug-info-kind=constructor we ran into a "fragment covers entire variable" error during thinlto. The fragment is currently always emitted if there is no type size, but sometimes the variable has a forward declared struct type which doesn't have a size. This changes the code to get the type size from the GlobalVariable instead. Differential Revision: https://reviews.llvm.org/D85572
Diffstat (limited to 'llvm/lib/Support/Compression.cpp')
0 files changed, 0 insertions, 0 deletions