[PATCH] D77231: [lld] Support --lto-emit-asm and --plugin-opt=emit-asm

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 21 16:16:45 PDT 2020


MaskRay added inline comments.


================
Comment at: lld/ELF/Options.td:486
   HelpText<"Debug new pass manager">;
+def lto_emit_asm: J<"lto-emit-asm">,
+  HelpText<"Emit assembly code">;
----------------
`F`

J is a joined option, which expects an argument (which can be empty).


================
Comment at: lld/test/ELF/lto/emit-asm.ll:4
+; RUN: ld.lld --lto-emit-asm -shared %t.o -o - | FileCheck %s
+; RUN: ld.lld --plugin-opt=emit-asm --plugin-opt=lto-partitions=2\
+; RUN:    -shared %t.o -o %t2.s
----------------
Join the two lines.

I mentioned this in a previous comment.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77231/new/

https://reviews.llvm.org/D77231





More information about the llvm-commits mailing list