[clang] [llvm] [PseudoProbe] Support emitting to COFF object (PR #123870)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 21 21:07:08 PST 2025


================
@@ -12,7 +12,7 @@
 
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
+target triple = "x86_64-unknown--"
----------------
MaskRay wrote:

Triples with unknown OS default to ELF, so this doesn't really test COFF. 

You'll have to invoke both `opt -mtriple=x86_64` and  `opt -mtriple=x86_64-windows` and omit datalayout/triple in IR.

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


More information about the cfe-commits mailing list