2023-09-02 17:17:18 -04:00
|
|
|
//===-- driver-template.cpp -----------------------------------------------===//
|
2009-06-02 13:58:47 -04:00
|
|
|
//
|
2019-08-20 16:50:49 -04:00
|
|
|
// 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
|
2009-06-02 13:58:47 -04:00
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
2023-09-02 17:17:18 -04:00
|
|
|
#include "llvm/Support/LLVMDriver.h"
|
2018-07-28 07:08:33 -04:00
|
|
|
#include "llvm/ADT/ArrayRef.h"
|
2024-02-07 09:58:02 -05:00
|
|
|
#include "llvm/Support/InitLLVM.h"
|
2009-06-02 13:58:47 -04:00
|
|
|
|
2023-09-02 17:17:18 -04:00
|
|
|
int llvm_readobj_main(int argc, char **, const llvm::ToolContext &);
|
2017-01-02 14:19:15 -05:00
|
|
|
|
2023-09-02 17:17:18 -04:00
|
|
|
int main(int argc, char **argv) {
|
2024-02-07 09:58:02 -05:00
|
|
|
llvm::InitLLVM X(argc, argv);
|
2023-09-02 17:17:18 -04:00
|
|
|
return llvm_readobj_main(argc, argv, {argv[0], nullptr, false});
|
2009-06-02 13:58:47 -04:00
|
|
|
}
|