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)
commitc81307af0f07121f9e9f142078c04aeaae8c5eee
tree43ecad034bf920b5d3aa8d3d4cb674fa2a5fff4f
parente63de11a1a389d34e810336d21b1d1c0d1d7c0ce
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.

llvm-svn: 222064
llvm/include/llvm/IR/DebugInfo.h
llvm/lib/IR/DebugInfo.cpp