]> granicus.if.org Git - llvm/commit
[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)
commitf20bf7256aa55ca72d133af752cb21a96bd2fcb6
tree6918dc5bdb6bf170ace9a6f14487a560c533d56d
parentc2a07e23f0af6b22df18cc175efbb26b29a4a791
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298564 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/CodeView/TypeRecord.h
lib/DebugInfo/CodeView/CMakeLists.txt
lib/DebugInfo/CodeView/TypeRecord.cpp [deleted file]
lib/DebugInfo/CodeView/TypeStreamMerger.cpp