Skip to content

Commit

Permalink
Tighten up linkage settings for LLVM bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Nov 21, 2023
1 parent 85c42b7 commit e6f8edf
Show file tree
Hide file tree
Showing 4 changed files with 206 additions and 180 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_llvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ struct TimeTraceProfiler {
impl TimeTraceProfiler {
fn new(enabled: bool) -> Self {
if enabled {
unsafe { llvm::LLVMTimeTraceProfilerInitialize() }
unsafe { llvm::LLVMRustTimeTraceProfilerInitialize() }
}
TimeTraceProfiler { enabled }
}
Expand All @@ -113,7 +113,7 @@ impl TimeTraceProfiler {
impl Drop for TimeTraceProfiler {
fn drop(&mut self) {
if self.enabled {
unsafe { llvm::LLVMTimeTraceProfilerFinishThread() }
unsafe { llvm::LLVMRustTimeTraceProfilerFinishThread() }
}
}
}
Expand Down
Loading

0 comments on commit e6f8edf

Please sign in to comment.