diff options
Diffstat (limited to 'usr.bin/clang/lld/lld-driver.cpp')
-rw-r--r-- | usr.bin/clang/lld/lld-driver.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/usr.bin/clang/lld/lld-driver.cpp b/usr.bin/clang/lld/lld-driver.cpp new file mode 100644 index 000000000000..eec634de3c7f --- /dev/null +++ b/usr.bin/clang/lld/lld-driver.cpp @@ -0,0 +1,18 @@ +//===-- driver-template.cpp -----------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#include "llvm/Support/LLVMDriver.h" +#include "llvm/ADT/ArrayRef.h" +#include "llvm/Support/InitLLVM.h" + +int lld_main(int argc, char **, const llvm::ToolContext &); + +int main(int argc, char **argv) { + llvm::InitLLVM X(argc, argv); + return lld_main(argc, argv, {argv[0], nullptr, false}); +} |