diff options
author | Zachary Turner <zturner@google.com> | 2018-11-08 18:50:31 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-11-08 18:50:31 +0000 |
commit | 91dbd52890041a6ff494e007c5b42bea4d18b519 (patch) | |
tree | 568617b7ea52353542a6f20c5977160e838cfc9d /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 056e4ab497b54cc5362e0761b58fb51620dc9a1d (diff) | |
download | bcm5719-llvm-91dbd52890041a6ff494e007c5b42bea4d18b519.tar.gz bcm5719-llvm-91dbd52890041a6ff494e007c5b42bea4d18b519.zip |
Fix bug in PE/COFF plugin and ValueObjectVariable.
There are two bugs here. The first is that MSVC and clang-cl
emit their bss section under the name '.data' instead of '.bss'
but with the size and file offset set to 0. ObjectFilePECOFF
didn't handle this, and would only recognize a section as bss
if it was actually called '.bss'. The effect of this is that
if we tried to print the value of a variable that lived in BSS
we would fail.
The second bug is that ValueObjectVariable was only returning
the forward type, which is insufficient to print the value of an
enum. So we bump this up to the layout type.
Differential Revision: https://reviews.llvm.org/D54241
llvm-svn: 346430
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
0 files changed, 0 insertions, 0 deletions