[lld] [lld][COFF] Emit coffgrp debug record (PR #205630)
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 4 08:37:03 PDT 2026
================
@@ -0,0 +1,52 @@
+# REQUIRES: x86
+
+# Make a DLL that exports exportfn1.
+# RUN: yaml2obj %p/Inputs/export.yaml -o %t.obj
+# RUN: lld-link /out:%t.dll /dll %t.obj /export:exportfn1 /implib:%t.lib
+
+# Make an obj that takes the address of that exported function.
+# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t2.obj
+# RUN: lld-link -entry:main -guard:cf %t2.obj %t.lib -nodefaultlib -out:%t.exe /verbose /coff-debug-record 2>&1 | FileCheck %s --check-prefix=NOPGO,REC
----------------
aganea wrote:
Please test the actual output, not the `/verbose` stdout. We should therefore use `llvm-readobj --coff-debug-directory` here.
https://github.com/llvm/llvm-project/pull/205630
More information about the llvm-commits
mailing list