Fix Itanium RTTI emission so that we emit fundamental type information into the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 3 Feb 2016 01:32:42 +0000 (01:32 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 3 Feb 2016 01:32:42 +0000 (01:32 +0000)
commit4a38201176fc8e8822fbdace03bb98ee75cac82a
treecb20281460b6c1a532c2c3f887bdc126617e57cc
parenteb959722a70c76af559f673806253bff4a2a4d6e
Fix Itanium RTTI emission so that we emit fundamental type information into the
C++ ABI library for the same set of types for which we expect the C++ ABI
library to provide the RTTI.

Specifically:
 1) __int128 and unsigned __int128 are now emitted into the ABI library. We
    always expected them to be there but never actually made sure to emit them.
 2) Do not expect OpenCL builtin types to have type info in the C++ ABI library.
    Neither libc++abi nor libstdc++ puts them there when built with either GCC
    or Clang.

This matches GCC's behavior.

llvm-svn: 259616
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/test/CodeGenCXX/rtti-fundamental.cpp