[Flang] remove whole-archive option for AIX linker (#76039)
[llvm-project.git] / clang / lib / Tooling / DependencyScanning / DependencyScanningService.cpp
blob7458ef484b16c409e69a9f1333172e2e26ca0c63
1 //===- DependencyScanningService.cpp - clang-scan-deps service ------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "clang/Tooling/DependencyScanning/DependencyScanningService.h"
10 #include "llvm/Support/TargetSelect.h"
12 using namespace clang;
13 using namespace tooling;
14 using namespace dependencies;
16 DependencyScanningService::DependencyScanningService(
17 ScanningMode Mode, ScanningOutputFormat Format,
18 ScanningOptimizations OptimizeArgs, bool EagerLoadModules)
19 : Mode(Mode), Format(Format), OptimizeArgs(OptimizeArgs),
20 EagerLoadModules(EagerLoadModules) {
21 // Initialize targets for object file support.
22 llvm::InitializeAllTargets();
23 llvm::InitializeAllTargetMCs();
24 llvm::InitializeAllAsmPrinters();
25 llvm::InitializeAllAsmParsers();