summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachinePostDominators.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-05-20 18:21:51 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-05-20 18:21:51 +0000
commit2af1c805b4775e9ff52c0491188833a67740eec1 (patch)
tree06d8e9efb5af7c2852efcc6b680c5f77008a9db6 /llvm/lib/CodeGen/MachinePostDominators.cpp
parente919fcac05f3b2b62a801c40dcf37597e2479d69 (diff)
downloadbcm5719-llvm-2af1c805b4775e9ff52c0491188833a67740eec1.tar.gz
bcm5719-llvm-2af1c805b4775e9ff52c0491188833a67740eec1.zip
PR19767: DebugInfo emission of pointer constants.
In refactoring DwarfUnit::isUnsignedDIType I restricted it to only work on values with signedness (unsigned or signed), asserting on anything else (which did uncover some bugs). But it turns out that we do need to emit constants of signless data, such as pointer constants - only null pointer constants are known to need this so far, but it's conceivable that there might be non-null pointer constants at some point (hardcoded address offsets for device drivers?). This patch just uses 'unsigned' for signless data such as pointer constants. Arguably we could use signless representations (DW_FORM_dataN) instead, allowing a trinary result from isUnsignedDIType (signed, unsigned, signless), but this seems reasonable for now. llvm-svn: 209223
Diffstat (limited to 'llvm/lib/CodeGen/MachinePostDominators.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud