[codeview] Move type index remapping logic to type merger
authorReid Kleckner <rnk@google.com>
Thu, 23 Mar 2017 00:14:23 +0000 (00:14 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 23 Mar 2017 00:14:23 +0000 (00:14 +0000)
commitc573acd9e96b850cee9d9cf148e8831f004fbe62
treeacb887ee68b28f7a27e8b6f0f2d7a55d79f5f9d2
parent0145e751c472fa15ea41abf2930ca6facc8a733d
[codeview] Move type index remapping logic to type merger

Summary:
This removes the 'remapTypeIndices' method on every TypeRecord class. My
original idea was that this would be the beginning of some kind of
generic entry point that would enumerate all of the TypeIndices inside
of a TypeRecord, so that we could write generic graph algorithms for
them without duplicating the knowledge of which fields are type index
fields everywhere. This never happened, and nothing else uses this
method. I need to change the API to deal with merging into IPI streams,
so let's move it into the file that uses it first.

Reviewers: zturner, ruiu

Reviewed By: zturner, ruiu

Subscribers: mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D31267

llvm-svn: 298564
llvm/include/llvm/DebugInfo/CodeView/TypeRecord.h
llvm/lib/DebugInfo/CodeView/CMakeLists.txt
llvm/lib/DebugInfo/CodeView/TypeRecord.cpp [deleted file]
llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp