[llvm] r235407 - DebugInfo: Use MDType in DITypeIdentifierMap

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Apr 21 12:17:20 PDT 2015

Author: dexonsmith
Date: Tue Apr 21 14:17:20 2015
New Revision: 235407

URL: http://llvm.org/viewvc/llvm-project?rev=235407&view=rev
DebugInfo: Use MDType in DITypeIdentifierMap

Use `MDType*` instead of `MDNode*` in `DITypeIdentifierMap`, since all
the members should be types.


Modified: llvm/trunk/include/llvm/IR/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DebugInfo.h?rev=235407&r1=235406&r2=235407&view=diff
--- llvm/trunk/include/llvm/IR/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/IR/DebugInfo.h Tue Apr 21 14:17:20 2015
@@ -34,7 +34,7 @@ class DbgDeclareInst;
 class DbgValueInst;
 /// \brief Maps from type identifier to the actual MDNode.
-typedef DenseMap<const MDString *, MDNode *> DITypeIdentifierMap;
+typedef DenseMap<const MDString *, MDType *> DITypeIdentifierMap;
 typedef DebugNodeArray DIArray;
 typedef MDTypeRefArray DITypeArray;

More information about the llvm-commits mailing list