[PATCH] D34764: Introduce FileEdit utility
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 28 11:15:33 PDT 2017
ruiu added a comment.
How about adding here document to lit command? I mean it is more readable if you can write something like this
llvm-mc <<END -o %t/a.obj -filetype=obj -triple x86_64-windows-msvc
.section .bss,"bw",discard,main_global
.globl main_global
main_global:
.long 0
END
than
1. RUN: FileEdit %s %t
2. RUN: llvm-mc %t/a.s -o %t/a.obj -filetype=obj -triple x86_64-windows-msvc
3. SPLIT: a.s .section .bss,"bw",discard,main_global .globl main_global main_global: .long 0
Also people are already familiar with the concept of here document, so it should be easy to digest and use.
https://reviews.llvm.org/D34764
More information about the llvm-commits
mailing list