[PATCH] D70153: Add support for multi-module bitcode files to llvm-dis

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 17:00:01 PST 2019


MaskRay added a comment.

In D70153#1744929 <https://reviews.llvm.org/D70153#1744929>, @pcc wrote:

> The way I imagined this might work is that llvm-dis would write out the modules concatenated with some kind of delimiter between them. Then llvm-as would be taught to expect the same input and produce a multi-module file from it, which would allow an easy way to produce multi-module files. Does that sound like it might work better?


I like the delimiter approach.



================
Comment at: llvm/test/Assembler/multi-mod-disassemble.ll:6
+; RUN: llvm-as -o %t5.o %t3.1
+; RUN: diff -b %t4.o %t5.o
+; RUN: llvm-cat -b -o %t6.o %t5.o %t4.o
----------------
diff -> cmp


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70153





More information about the llvm-commits mailing list