IR: Add MDExpression::ExprOperand
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 13 Feb 2015 01:07:46 +0000 (01:07 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 13 Feb 2015 01:07:46 +0000 (01:07 +0000)
commit7473485c0f943fbbbcc3bf297fffb7ff2e4a1a97
treeb99db4158d983b8451321b9540883bbac56e3fce
parent191690dc8c0076ce1b3f7a36a4681082e3361b86
IR: Add MDExpression::ExprOperand

Port `DIExpression::Operand` over to `MDExpression::ExprOperand`.  The
logic is needed directly in `MDExpression` to support printing in
assembly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229002 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfoMetadata.h
lib/IR/DebugInfoMetadata.cpp
lib/IR/Verifier.cpp
unittests/IR/MetadataTest.cpp