[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 29 23:17:41 PST 2024


================
@@ -77,6 +77,12 @@ static unsigned char dosProgram[] = {
 static_assert(sizeof(dosProgram) % 8 == 0,
               "DOSProgram size must be multiple of 8");
 
+static char ltcg[] = "LTCG";
----------------
MaskRay wrote:

`constexpr char ...[]`

constexpr/const make this internal linkage, making static unneeded

https://github.com/llvm/llvm-project/pull/114260


More information about the cfe-commits mailing list