Add missing vtable anchor's.
authorPete Cooper <peter_cooper@apple.com>
Mon, 14 Dec 2015 20:29:16 +0000 (20:29 +0000)
committerPete Cooper <peter_cooper@apple.com>
Mon, 14 Dec 2015 20:29:16 +0000 (20:29 +0000)
commitfecd8a332e245e2535faf04de564bba8f7e068d8
treea88234473a52187e441e029dd0ede196083ea1bf
parentc07a65e35ab86532fb638c3b1c0474a3b97d2d11
Add missing vtable anchor's.

The following description is from http://reviews.llvm.org/D15481:

ICmpInst, GetElementPtrInst and PHINode have no anchor functions. This causes the vtable and the type info (if RTTI is enabled in user code) to be emitted in multiple translation units.

Before 3.7, the destructors were the key functions for these nodes, but they have been removed.

There have been discussions about this here: http://lists.llvm.org/pipermail/llvm-dev/2015-August/089010.html and here: http://lists.llvm.org/pipermail/llvm-dev/2015-December/092921.html.

Patch by Visoiu Mistrih Francis

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