]> granicus.if.org Git - clang/commit
Parse and print DIExpressions inline to ease IR and MIR testing
authorReid Kleckner <rnk@google.com>
Wed, 23 Aug 2017 20:31:27 +0000 (20:31 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 23 Aug 2017 20:31:27 +0000 (20:31 +0000)
commit9a72b1ebd57cff2dd982ccee352a198c41303745
tree64b3bf6e8f98bdfd6a5eb3983e96f77b114e0ee1
parent3a9e3bcddd1c28016ea6d76525083f3ddb743a66
Parse and print DIExpressions inline to ease IR and MIR testing

Summary:
Most DIExpressions are empty or very simple. When they are complex, they
tend to be unique, so checking them inline is reasonable.

This also avoids the need for CodeGen passes to append to the
llvm.dbg.mir named md node.

See also PR22780, for making DIExpression not be an MDNode.

Reviewers: aprantl, dexonsmith, dblaikie

Subscribers: qcolombet, javed.absar, eraman, hiraditya, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311594 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/2010-08-10-DbgConstant.c
test/CodeGen/debug-info-global-constant.c
test/CodeGen/debug-info-static-const-fp.c
test/CodeGen/debug-info-vla.c
test/CodeGenCXX/debug-info-inheriting-constructor.cpp
test/CodeGenCXX/debug-info.cpp
test/CodeGenOpenCL/amdgpu-debug-info-variable-expression.cl
test/OpenMP/nvptx_target_firstprivate_codegen.cpp