================ @@ -0,0 +1,150 @@ +//===-- LowerCommentStringPass.cpp - Lower Comment string metadata -------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===---------------------------------------------------------------------===// +// +// This pass lowers the module-level comment string metadata emitted by Clang: +// +// !comment_string.loadtime = !{!"Copyright ..."} +// +// into concrete, translation-unit-local globals. +// This Pass is enabled only for AIX. +// For each module (translation unit), the pass performs the following: +// +// 1. Creates a null-terminated, internal constant string global +// (`__loadtime_comment_str`) containing the copyright text with +// section attribute "__loadtime_comment". The backend places this ---------------- tonykuttai wrote:
All the LTO issues will be fixed with the next stacked PR [[ThinLTO][AIX] Add ThinLTO support for #pragma comment(copyright, ...)](https://github.com/llvm/llvm-project/pull/199398/changes/af1c62ef75753047537f1f7f6ed42153e806d8f7#top) https://github.com/llvm/llvm-project/pull/178184 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
