commit | dae63e2c0ff1b7d64e186fe72e06a80ef895402c | [log] [tgz] |
---|---|---|
author | Andrew Savonichev <andrew.savonichev@gmail.com> | Thu Apr 17 20:18:52 2025 +0900 |
committer | Andrew Savonichev <andrew.savonichev@gmail.com> | Mon Apr 28 15:49:54 2025 +0900 |
tree | bd35201ee5cb02cf1b356a26de1edbb0c8d87b3f | |
parent | f5ba3d0c6d413e46fa962be80cfb37857e35b9ab [diff] |
Reland [clang] Handle instantiated members to determine visibility (#136128) (#136689) As reported in issue #103477, visibility of instantiated member functions used to be ignored when calculating visibility of a specialization. This patch modifies `getLVForClassMember` to look up for a source template for an instantiated member, and changes `mergeTemplateLV` to apply it. A similar issue was reported in #31462, but it seems that `extern` declaration with visibility prevents the function from being emitted as hidden. This behavior seems correct, even though GCC emits it as with default visibility instead. Both tests from #103477 and #31462 are added as LIT tests `test72` and `test73` respectively.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.