Go to file
David Majnemer d905da4a5f MS ABI: Reference MSVC RTTI from the VFTable
The pointer for a class's RTTI data comes right before the VFTable but
has no name.  To be properly compatible with this, we do the following:
* Create a single GlobalVariable which holds the contents of the VFTable
  _and_ the pointer to the RTTI data.
* Create a GlobalAlias, with appropriate linkage/visibility, that points
  just after the RTTI data pointer.  This ensures that the VFTable
  symbol will always refer to VFTable data.
* Create a Comdat with a "Largest" SelectionKind and stick the private
  GlobalVariable in it.  By transitivity, the GlobalAlias will be a
  member of the Comdat group.  Using "Largest" ensures that foreign
  definitions without an RTTI data pointer will _not_ be chosen in the
  final linked image.

Whether or not we emit RTTI data depends on several things:
* The -fno-rtti flag implies that we should never not emit a pointer to
  RTTI data before the VFTable.
* __declspec(dllimport) brings in the VFTable from a remote DLL. Use an
  available_externally GlobalVariable to provide a local definition of
  the VFTable.  This means that we won't have any available_externally
  definitions of things like complete object locators.  This is
  acceptable because they are never directly referenced.

To my knowledge, this completes the implementation of MSVC RTTI code
generation.

Further semantic work should be done to properly support /GR-.

llvm-svn: 212125
2014-07-01 20:30:31 +00:00
clang MS ABI: Reference MSVC RTTI from the VFTable 2014-07-01 20:30:31 +00:00
clang-tools-extra Initialize ClangTidyMessage::FileOffset field to avoid unitialized variable access when sorting errors on output. 2014-06-30 14:29:03 +00:00
compiler-rt [MSan] Fixup r212082: enable tests for _mm_ intrinsics if and only if the 2014-07-01 19:58:41 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc OpenCL 1.1 does not define CL_VERSION_1_2 so use hardcoded number instead 2014-06-26 15:26:38 +00:00
libcxx Fix libc++ bug #20039: 'Constructing std::function from empty compatible std::function results in half-empty state' Thanks to Agustin Berge for the report, and for his and Eric Fiselier's work on a fix. 2014-06-30 21:27:51 +00:00
libcxxabi Revert the LSDA change to scan_eh_tab. 2014-06-30 12:35:29 +00:00
lld [mach-o]: make the default dylib install-name the output filename. 2014-07-01 08:41:45 +00:00
lldb This creates a valid Python API for Windows, pending some issues. The changes included are - 2014-07-01 17:57:19 +00:00
llvm Move the subtarget dependent features from SystemZTargetMachine 2014-07-01 20:19:02 +00:00
openmp CMake: remove duplicated source file from list 2014-06-02 13:09:24 +00:00
polly [FIX] Don't consider reductions which are partially outside the SCoP 2014-07-01 00:32:29 +00:00