2018-05-06 13:29:51 +00:00
|
|
|
#include "lld/Driver/Driver.h"
|
2017-12-08 08:28:08 +00:00
|
|
|
#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;
|
|
|
|
|
2018-05-06 06:52:23 +00:00
|
|
|
int mainEntryClickHouseLLD(int Argc, char **Argv)
|
|
|
|
{
|
2017-12-08 08:28:08 +00:00
|
|
|
// 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);
|
2018-05-06 06:52:23 +00:00
|
|
|
return !elf::link(Args, true);
|
2017-12-08 08:28:08 +00:00
|
|
|
}
|