DI: Use Metadata for DITypeRef and DIScopeRef
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 14 Nov 2014 23:55:03 +0000 (23:55 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 14 Nov 2014 23:55:03 +0000 (23:55 +0000)
commitf4d2109d2db3b332766197b5c70d217b4c9fb482
tree405c0c4d5a18d8a0e90b5b47ed2dc5bb6c790ffb
parent0737b4ee1496c61913703d1d3439bfaa913ee44b
DI: Use Metadata for DITypeRef and DIScopeRef

Now that `MDString` and `MDNode` have a common base class, use it.  Note
that it's not useful to assume subclasses of `Metadata` must be one or
the other since we'll be adding more subclasses soon enough.

Part of PR21532.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222064 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DebugInfo.h
lib/IR/DebugInfo.cpp