[all-commits] [llvm/llvm-project] e15b26: Reland: [Remarks][Driver] Use different remark fil...

Visoiu Mistrih Francis via All-commits all-commits at lists.llvm.org
Mon Nov 18 11:17:50 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e15b26fbbd901315a1402f97e83abf29bdce9a9f
      https://github.com/llvm/llvm-project/commit/e15b26fbbd901315a1402f97e83abf29bdce9a9f
  Author: Francis Visoiu Mistrih <francisvm at yahoo.com>
  Date:   2019-11-18 (Mon, 18 Nov 2019)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    A clang/test/Driver/darwin-opt-record.c

  Log Message:
  -----------
  Reland: [Remarks][Driver] Use different remark files when targeting multiple architectures

When the driver is targeting multiple architectures at once, for things
like Universal Mach-Os, we need to emit different remark files for each
cc1 invocation to avoid overwriting the files from a different
invocation.

For example:

$ clang -c -o foo.o -fsave-optimization-record -arch x86_64 -arch x86_64h

will create two remark files:

* foo-x86_64.opt.yaml
* foo-x86_64h.opt.yaml




More information about the All-commits mailing list