[llvm] [gold] Enable time trace profiler in LLVMgold (PR #94293)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 11:53:13 PDT 2024


================
@@ -0,0 +1,32 @@
+; RUN: llvm-as %s -o %t.o
+
+; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
+; RUN:    -m elf_x86_64 --plugin-opt=time-trace=%t2.json \
+; RUN:    -shared %t.o -o %t3.s
----------------
MaskRay wrote:

If the output is unused, prefer `-o /dev/null`; otherwise `.so` for shared objects.

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


More information about the llvm-commits mailing list