[all-commits] [llvm/llvm-project] d5aaf6: [windows-itanium] handle dllimport/export code pat...

bd1976bris via All-commits all-commits at lists.llvm.org
Mon Nov 30 06:43:01 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d5aaf6021476243de73f8eb8a7479a2288582225
      https://github.com/llvm/llvm-project/commit/d5aaf6021476243de73f8eb8a7479a2288582225
  Author: Ben Dunbobbin <Ben.Dunbobbin at sony.com>
  Date:   2020-11-30 (Mon, 30 Nov 2020)

  Changed paths:
    M clang/include/clang/Basic/TargetInfo.h
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/test/CodeGenCXX/dllexport-vtable-thunks.cpp
    M clang/test/CodeGenCXX/windows-implicit-dllexport-template-specialization.cpp
    M clang/test/CodeGenCXX/windows-itanium-dllexport.cpp
    M clang/test/Sema/dllimport.c
    M clang/test/SemaCXX/dllexport.cpp
    M clang/test/SemaCXX/dllimport.cpp

  Log Message:
  -----------
  [windows-itanium] handle dllimport/export code paths separately and share with PS4

Similar to Windows Itanium, PS4 is also an Itanium C++ ABI variant
which shares the goal of semantic compatibility with Microsoft C++
code that uses dllimport/export.

This change introduces a new function to determine from the triple
if an environment aims for compatibility with MS C++ code w.r.t to
these attributes and guards the relevant code paths using that
function.

Differential Revision: https://reviews.llvm.org/D90299




More information about the All-commits mailing list