[all-commits] [llvm/llvm-project] b4e2b1: [Remarks][Driver] Use different remark files when ...

Visoiu Mistrih Francis via All-commits all-commits at lists.llvm.org
Mon Nov 18 10:39:37 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b4e2b112b58154a89171df39dae80044865ff4ff
      https://github.com/llvm/llvm-project/commit/b4e2b112b58154a89171df39dae80044865ff4ff
  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
    M clang/test/Driver/opt-record.c

  Log Message:
  -----------
  [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