[PATCH] D91904: [mac/arm] Fix rtti codegen tests when running on an arm mac

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 20 18:32:02 PST 2020


thakis created this revision.
thakis added a reviewer: rjmccall.
Herald added subscribers: kristof.beyls, dschuff.
thakis requested review of this revision.
Herald added a subscriber: aheejin.

[mac/arm] Fix rtti codegen tests when running on an arm mac

shouldRTTIBeUnique() returns false for iOS64CXXABI, which causes
RTTI objects to be emitted hidden. Update two tests that didn't
expect this to happen for the default triple.

Also rename iOS64CXXABI to AppleARM64CXXABI, since it's used for
arm64-apple-macos triples too.

Part of PR46644.


https://reviews.llvm.org/D91904

Files:
  clang/include/clang/Basic/TargetCXXABI.h
  clang/lib/AST/ASTContext.cpp
  clang/lib/Basic/Targets/AArch64.cpp
  clang/lib/CodeGen/CodeGenModule.cpp
  clang/lib/CodeGen/ItaniumCXXABI.cpp
  clang/test/CodeGenCXX/weak-extern-typeinfo.cpp
  clang/test/SemaCXX/typeid-ref.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91904.306816.patch
Type: text/x-patch
Size: 9053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201121/29ec9500/attachment.bin>


More information about the cfe-commits mailing list