[all-commits] [llvm/llvm-project] 14a729: [clang][clangd] Avoid inconsistent target creation

Tommy Chiang via All-commits all-commits at lists.llvm.org
Tue Apr 6 08:24:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14a7296c0120913e949739e4e90ea5a5f1bd8af1
      https://github.com/llvm/llvm-project/commit/14a7296c0120913e949739e4e90ea5a5f1bd8af1
  Author: oToToT <ty1208chiang at gmail.com>
  Date:   2021-04-06 (Tue, 06 Apr 2021)

  Changed paths:
    M clang-tools-extra/clangd/Compiler.cpp
    M clang/lib/Frontend/ASTUnit.cpp
    M clang/lib/Frontend/PrecompiledPreamble.cpp

  Log Message:
  -----------
  [clang][clangd] Avoid inconsistent target creation

As proposed in D97109, I tried to make target creation consistent in `clang` and `clangd` by replacing the original procedure with a single function introduced in D97493.

This also helps `clangd` works with CUDA, OpenMP, etc.

Reviewed By: kadircet

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




More information about the All-commits mailing list