Tighten up linkage settings for LLVM bindings
This commit is contained in:
parent
85c42b751e
commit
e6f8edff37
4 changed files with 206 additions and 180 deletions
|
@ -60,17 +60,17 @@ typedef struct LLVMOpaqueTargetMachine *LLVMTargetMachineRef;
|
|||
DEFINE_STDCXX_CONVERSION_FUNCTIONS(Pass, LLVMPassRef)
|
||||
DEFINE_STDCXX_CONVERSION_FUNCTIONS(TargetMachine, LLVMTargetMachineRef)
|
||||
|
||||
extern "C" void LLVMTimeTraceProfilerInitialize() {
|
||||
extern "C" void LLVMRustTimeTraceProfilerInitialize() {
|
||||
timeTraceProfilerInitialize(
|
||||
/* TimeTraceGranularity */ 0,
|
||||
/* ProcName */ "rustc");
|
||||
}
|
||||
|
||||
extern "C" void LLVMTimeTraceProfilerFinishThread() {
|
||||
extern "C" void LLVMRustTimeTraceProfilerFinishThread() {
|
||||
timeTraceProfilerFinishThread();
|
||||
}
|
||||
|
||||
extern "C" void LLVMTimeTraceProfilerFinish(const char* FileName) {
|
||||
extern "C" void LLVMRustTimeTraceProfilerFinish(const char* FileName) {
|
||||
StringRef FN(FileName);
|
||||
std::error_code EC;
|
||||
raw_fd_ostream OS(FN, EC, sys::fs::CD_CreateAlways);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue