diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2019-06-26 07:39:03 +0000 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2019-06-26 07:39:03 +0000 |
commit | c3a7302397746d669e5339ef25506b0429b23354 (patch) | |
tree | f008d7424779a9e10652a21710e770a2ba55ae02 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5dff8ca26a90c749a7a9550764592980f30ab544 (diff) | |
download | llvm-c3a7302397746d669e5339ef25506b0429b23354.zip llvm-c3a7302397746d669e5339ef25506b0429b23354.tar.gz llvm-c3a7302397746d669e5339ef25506b0429b23354.tar.bz2 |
[clang][Tooling] Infer target and mode from argv[0] when using JSONCompilationDatabase
Summary:
Wraps JSON compilation database with a target and mode adding database
wrapper. So that driver can correctly figure out which toolchain to use.
Note that clients that wants to make use of this target discovery mechanism
needs to link in TargetsInfos and initialize them at startup.
Reviewers: ilya-biryukov
Subscribers: mgorny, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D63755
llvm-svn: 364386
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions