[mac/arm] Fix rtti codegen tests when running on an arm mac
authorNico Weber <thakis@chromium.org>
Thu, 3 Dec 2020 14:11:03 +0000 (09:11 -0500)
committerNico Weber <thakis@chromium.org>
Thu, 3 Dec 2020 14:11:03 +0000 (09:11 -0500)
commit0cbf61be8be546257854d1a2e5d6c675f5838a63
treec3df27811886181cf7747f1c3022a3ddc67c8752
parentb2391d5f0da2a9122d337de6fa1a6aa9baad3fb4
[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.

Differential Revision: https://reviews.llvm.org/D91904
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