[all-commits] [llvm/llvm-project] d412db: [clang][NFC] Extract Target and AuxTarget creation...

Tommy Chiang via All-commits all-commits at lists.llvm.org
Fri Feb 26 00:29:30 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d412dbe388819dd68bbe4a3967783fdf80400860
      https://github.com/llvm/llvm-project/commit/d412dbe388819dd68bbe4a3967783fdf80400860
  Author: Yu-Hsun Chiang <ty1208chiang at gmail.com>
  Date:   2021-02-26 (Fri, 26 Feb 2021)

  Changed paths:
    M clang/include/clang/Frontend/CompilerInstance.h
    M clang/lib/Frontend/CompilerInstance.cpp

  Log Message:
  -----------
  [clang][NFC] Extract Target and AuxTarget creation in CompilerInstance to new function

As @sammccall mentioned in [[ https://reviews.llvm.org/D97109 | D97109 ]], I've extract the logic of creating Target and AuxTarget into a new function called `createTargetAndAuxTarget`.

Since there are many similar code in clang or other related tools, consolidating them into a single function may help others to maintain the logic handling target related things.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D97493




More information about the All-commits mailing list