]> granicus.if.org Git - llvm/commit
Deprecate DwarfUnit::addBlockByrefAddress().
authorAdrian Prantl <aprantl@apple.com>
Thu, 12 Oct 2017 22:54:36 +0000 (22:54 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 12 Oct 2017 22:54:36 +0000 (22:54 +0000)
commit355469048133e9dee40631c8772ceb61e4496490
tree7751e909b08e02fcc9b047160c5bc7bccfdf305e
parent959cfda875309a28c9de0686b610d879cb3913ec
Deprecate DwarfUnit::addBlockByrefAddress().

The clang frontend already creates a DIExpression that replicates the
logic in addBlockByrefAddress() exactly, thus making this function
effectively unreachable. To guard against human error I'm hereby
marking the function with an assertion and let it hit the bots before
eventually removing it.

rdar://problem/31629055

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315636 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp