[PATCH] D63978: Clang Interface Stubs merger plumbing for Driver

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 11:02:10 PST 2020


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





More information about the llvm-commits mailing list