mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
24 lines
666 B
C++
24 lines
666 B
C++
#include "lld/Common/Driver.h"
|
|
#include "llvm/ADT/STLExtras.h"
|
|
#include "llvm/ADT/StringSwitch.h"
|
|
#include "llvm/ADT/Twine.h"
|
|
#include "llvm/Support/ManagedStatic.h"
|
|
#include "llvm/Support/Path.h"
|
|
#include "llvm/Support/PrettyStackTrace.h"
|
|
#include "llvm/Support/Signals.h"
|
|
|
|
using namespace lld;
|
|
using namespace llvm;
|
|
using namespace llvm::sys;
|
|
|
|
int mainEntryClickHouseLLD(int Argc, char **Argv)
|
|
{
|
|
// Standard set up, so program fails gracefully.
|
|
sys::PrintStackTraceOnErrorSignal(Argv[0]);
|
|
PrettyStackTraceProgram StackPrinter(Argc, Argv);
|
|
llvm_shutdown_obj Shutdown;
|
|
|
|
std::vector<const char *> Args(Argv, Argv + Argc);
|
|
return !elf::link(Args, true);
|
|
}
|