commit | c130a20cf306739c9afa2a65fa05bf29cd72bd6a | [log] [tgz] |
---|---|---|
author | Reid Kleckner <rnk@google.com> | Thu May 11 21:14:29 2017 +0000 |
committer | Reid Kleckner <rnk@google.com> | Thu May 11 21:14:29 2017 +0000 |
tree | f97660a2be9460dddc79f405013c8621020b4c64 | |
parent | 2d534b8ab24d3756b1ce0e4f9b5ab7913c357135 [diff] |
De-virtualize GlobalValue The erase/remove from parent methods now use a switch table to remove themselves from their appropriate parent ilist. The copyAttributesFrom method is now completely non-virtual, since we only ever copy attributes from a global of the appropriate type. Pre-requisite to de-virtualizing Value to save a vptr (https://reviews.llvm.org/D31261). NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302823 91177308-0d34-0410-b5e6-96231b3b80d8