DebugInfo: Drop fake DW_TAG_expression
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 17 Mar 2015 21:32:46 +0000 (21:32 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 17 Mar 2015 21:32:46 +0000 (21:32 +0000)
commit719994b90739c3665e05e625b1bbbd2aa2190fea
tree85576404936dd304d8a6c42b65fb8bce3a1cd007
parent7fce7e62db29e3b3e2ed32cc1997aafb2f57781e
DebugInfo: Drop fake DW_TAG_expression

Break MDExpression off of DebugNode (inherit directly from `MDNode`) and
drop the fake `DW_TAG_expression` tag in the process.

AFAICT, there's no real functionality change here.  The tag was
originally used by `DIDescriptor::isExpression()` to discriminate
between `MDNode`s, but in the new hierarchy we don't need that.

Fixes PR22780.

llvm-svn: 232550
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/include/llvm/IR/Metadata.def
llvm/include/llvm/Support/Dwarf.def
llvm/lib/IR/Verifier.cpp