MaskRay added a comment.
Herald added a subscriber: dexonsmith.

I think we should not rely too much on the driver emitting object files. There 
can be many subtle differences (D68897 <https://reviews.llvm.org/D68897>).

When the -emit-obj output is  feed to llvm-nm, the clang cc1 command line 
should have an explicit target triple.

`clang -cc1 -triple x86_64-pc-windows /dev/null -emit-obj -o a.o`

  0000000000000000 b .bss
  0000000000000000 d .data
  0000000000000000 a @feat.00
  0000000000000000 t .text

`clang -cc1 -triple x86_64 /dev/null -emit-obj -o a.o`
nm has no output.

`clang -cc1 -triple x86_64-macos /dev/null -emit-obj -o a.o`
GNU nm's macho port prints "no symbols"


Repository:
  rL LLVM

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

https://reviews.llvm.org/D63978



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to