[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)
Mikołaj Piróg via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 4 12:46:30 PST 2024
================
@@ -0,0 +1,13 @@
+// This test checks if Window PE file compiled with -flto option contains a magic
+// string "LTCG" to indicate LTO compilation.
+
+// REQUIRES: system-windows
+
+// RUN: %clang --target=x86_64-pc-windows-msvc -flto -fuse-ld=lld %s -o %t.exe
+// RUN: dumpbin /HEADERS %t.exe | FileCheck %s
----------------
mikolaj-pirog wrote:
I have changed most of the tests to use `llvm-readobj` (turns out it can show debug dir, so there is no need for any change in `llvm-objdump`) so they don't require windows platform. I will change rest of the tests (PGU, LTCG) soon
https://github.com/llvm/llvm-project/pull/114260
More information about the cfe-commits
mailing list