xref: /freebsd/usr.bin/clang/llvm-profdata/llvm-profdata-driver.cpp (revision b3edf4467982447620505a28fc82e38a414c07dc)
106c3fb27SDimitry Andric //===-- driver-template.cpp -----------------------------------------------===//
206c3fb27SDimitry Andric //
306c3fb27SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
406c3fb27SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
506c3fb27SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
606c3fb27SDimitry Andric //
706c3fb27SDimitry Andric //===----------------------------------------------------------------------===//
806c3fb27SDimitry Andric 
906c3fb27SDimitry Andric #include "llvm/Support/LLVMDriver.h"
1006c3fb27SDimitry Andric #include "llvm/ADT/ArrayRef.h"
11*b3edf446SDimitry Andric #include "llvm/Support/InitLLVM.h"
1206c3fb27SDimitry Andric 
1306c3fb27SDimitry Andric int llvm_profdata_main(int argc, char **, const llvm::ToolContext &);
1406c3fb27SDimitry Andric 
1506c3fb27SDimitry Andric int main(int argc, char **argv) {
16*b3edf446SDimitry Andric   llvm::InitLLVM X(argc, argv);
1706c3fb27SDimitry Andric   return llvm_profdata_main(argc, argv, {argv[0], nullptr, false});
1806c3fb27SDimitry Andric }
19