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
|
@ -104,7 +104,7 @@ struct TimeTraceProfiler {
|
|||
impl TimeTraceProfiler {
|
||||
fn new(enabled: bool) -> Self {
|
||||
if enabled {
|
||||
unsafe { llvm::LLVMTimeTraceProfilerInitialize() }
|
||||
unsafe { llvm::LLVMRustTimeTraceProfilerInitialize() }
|
||||
}
|
||||
TimeTraceProfiler { enabled }
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ impl TimeTraceProfiler {
|
|||
impl Drop for TimeTraceProfiler {
|
||||
fn drop(&mut self) {
|
||||
if self.enabled {
|
||||
unsafe { llvm::LLVMTimeTraceProfilerFinishThread() }
|
||||
unsafe { llvm::LLVMRustTimeTraceProfilerFinishThread() }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue