commit | 69e607f200faf0384a737bd8db69f29e51e1b378 | [log] [tgz] |
---|---|---|
author | Adrian Prantl <aprantl@apple.com> | Wed Aug 30 18:06:51 2017 +0000 |
committer | Adrian Prantl <aprantl@apple.com> | Wed Aug 30 18:06:51 2017 +0000 |
tree | 2623b1ea8144906eaa3c8707e47d05fdf46b2783 | |
parent | ec6b6f4e7ad864820eb26875edf94f28c466e053 [diff] |
Canonicalize the representation of empty an expression in DIGlobalVariableExpression This change simplifies code that has to deal with DIGlobalVariableExpression and mirrors how we treat DIExpressions in debug info intrinsics. Before this change there were two ways of representing empty expressions on globals, a nullptr and an empty !DIExpression(). If someone needs to upgrade out-of-tree testcases: perl -pi -e 's/(!DIGlobalVariableExpression\(var: ![0-9]*)\)/\1, expr: !DIExpression())/g' <MYTEST.ll> will catch 95%. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312144 91177308-0d34-0410-b5e6-96231b3b80d8