]> granicus.if.org Git - llvm/commit
Debug info for variables whose type is shrinked to bool
authorStrahinja Petrovic <strahinja.petrovic@rt-rk.com>
Fri, 1 Sep 2017 10:05:27 +0000 (10:05 +0000)
committerStrahinja Petrovic <strahinja.petrovic@rt-rk.com>
Fri, 1 Sep 2017 10:05:27 +0000 (10:05 +0000)
commit707fb1cf0ca99d98c59f1ae87b7e0ff9b2dd0c8b
treeb1401c3b0b1896bd5e2ecd52bfa6189464af133f
parent1a4fd5c74c726762abbc5e06e075c3626a8a1b68
Debug info for variables whose type is shrinked to bool

This patch provides such debug information for integer
variables whose type is shrinked to bool by providing
dwarf expression which returns either constant initial
value or other value.

Patch by Nikola Prica.

Differential Revision: https://reviews.llvm.org/D35994

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312318 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfExpression.cpp
lib/IR/DebugInfoMetadata.cpp
lib/Transforms/IPO/GlobalOpt.cpp