[PATCH] D48798: llvm-nm: Observe -no-llvm-bc for archive members

Dave Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 18 16:35:36 PDT 2018


kastiglione added inline comments.


================
Comment at: test/tools/llvm-nm/X86/archive-no-llvm-bc.test:1
+; RUN: rm -rf %t && mkdir %t
+; RUN: grep -v "module asm" %s | llvm-as -o %t/embedded.bc
----------------
smeenai wrote:
> `mkdir -p` is probably better.
good call


================
Comment at: test/tools/llvm-nm/X86/archive-no-llvm-bc.test:2
+; RUN: rm -rf %t && mkdir %t
+; RUN: grep -v "module asm" %s | llvm-as -o %t/embedded.bc
+; RUN: llc -I=%t -filetype=obj -o %t/obj.o %s
----------------
smeenai wrote:
> compnerd wrote:
> > I dont understand this.  Where is embedded.bc being used?  It seems that you could completely remove this bit and still have the test work?
> It's used in the incbin directive below (line 14).
@compnerd  the IR in this test is used twice, once to generate bitcode, and a second time to generate an object file. As @smeenai pointed to, there are two `module asm` directives that embed the bitcode.


Repository:
  rL LLVM

https://reviews.llvm.org/D48798





More information about the llvm-commits mailing list