OSDN Git Service

TableGen: delete no-op code
authorDylan Noblesmith <nobled@dreamwidth.org>
Sun, 24 Aug 2014 19:10:53 +0000 (19:10 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Sun, 24 Aug 2014 19:10:53 +0000 (19:10 +0000)
commitd52b1d08df93df399659fdbef54e4a2031ebe007
tree808314c10d17bf907b15ee2e6c2be7e6f31cd3a7
parent025ab7fe60e53cc6b53442759604f5aa258ed658
TableGen: delete no-op code

This does nothing but remove the Record from the map, and
then re-add it, without actually changing it in between.

The Record's Name used to be changed before re-adding it
when the code was first committed in r137232, but the
name-changing lines were removed in r142510, and since
then this code seems to do nothing.

This was also the only caller of removeClass or removeDef,
so now RecordKeeper owns its Records unconditionally,
and could be unique_ptr-ified.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216349 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/TableGen/Record.h
lib/TableGen/Record.cpp