DebugInfo: Use MDType in DITypeIdentifierMap
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 21 Apr 2015 19:17:20 +0000 (19:17 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 21 Apr 2015 19:17:20 +0000 (19:17 +0000)
Use `MDType*` instead of `MDNode*` in `DITypeIdentifierMap`, since all
the members should be types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235407 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/DebugInfo.h

index e6f3cf941d8dd51168a6b6f375426518f827a379..c12cc0c1c94f08bb617a49cc26fc061466fc61e5 100644 (file)
@@ -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;