forked from OSchip/llvm-project
parent
d540919ff1
commit
9f5013a138
|
|
@ -24,6 +24,7 @@
|
||||||
#include "llvm/Support/Signals.h"
|
#include "llvm/Support/Signals.h"
|
||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
#include "llvm/Support/TargetSelect.h"
|
#include "llvm/Support/TargetSelect.h"
|
||||||
|
#include <cstdint>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
using namespace llvm::dsymutil;
|
using namespace llvm::dsymutil;
|
||||||
|
|
@ -237,7 +238,7 @@ int main(int argc, char **argv) {
|
||||||
llvm::PrettyStackTraceProgram StackPrinter(argc, argv);
|
llvm::PrettyStackTraceProgram StackPrinter(argc, argv);
|
||||||
llvm::llvm_shutdown_obj Shutdown;
|
llvm::llvm_shutdown_obj Shutdown;
|
||||||
LinkOptions Options;
|
LinkOptions Options;
|
||||||
void *MainAddr = reinterpret_cast<void *>(&exitDsymutil);
|
void *MainAddr = (void *)(intptr_t)&exitDsymutil;
|
||||||
std::string SDKPath = llvm::sys::fs::getMainExecutable(argv[0], MainAddr);
|
std::string SDKPath = llvm::sys::fs::getMainExecutable(argv[0], MainAddr);
|
||||||
SDKPath = llvm::sys::path::parent_path(SDKPath);
|
SDKPath = llvm::sys::path::parent_path(SDKPath);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue