Skip to content

Commit 7420874

Browse files
committed
[LLVM-3.9] Rename custom methods to Rust-specific ones
1 parent d22a9a2 commit 7420874

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/librustc_llvm/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl Attributes {
226226

227227
pub fn apply_callsite(&self, idx: usize, callsite: ValueRef) {
228228
unsafe {
229-
LLVMAddCallSiteAttribute(callsite, idx as c_uint, self.regular.bits());
229+
LLVMRustAddCallSiteAttribute(callsite, idx as c_uint, self.regular.bits());
230230
if self.dereferenceable_bytes != 0 {
231231
LLVMAddDereferenceableCallSiteAttr(callsite, idx as c_uint,
232232
self.dereferenceable_bytes);
@@ -1056,7 +1056,7 @@ extern {
10561056
pub fn LLVMSetInstrParamAlignment(Instr: ValueRef,
10571057
index: c_uint,
10581058
align: c_uint);
1059-
pub fn LLVMAddCallSiteAttribute(Instr: ValueRef,
1059+
pub fn LLVMRustAddCallSiteAttribute(Instr: ValueRef,
10601060
index: c_uint,
10611061
Val: uint64_t);
10621062
pub fn LLVMAddDereferenceableCallSiteAttr(Instr: ValueRef,
@@ -1561,7 +1561,7 @@ extern {
15611561
Alignment: c_uint)
15621562
-> ValueRef;
15631563

1564-
pub fn LLVMBuildAtomicCmpXchg(B: BuilderRef,
1564+
pub fn LLVMRustBuildAtomicCmpXchg(B: BuilderRef,
15651565
LHS: ValueRef,
15661566
CMP: ValueRef,
15671567
RHS: ValueRef,

src/librustc_trans/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
10831083
failure_order: AtomicOrdering,
10841084
weak: llvm::Bool) -> ValueRef {
10851085
unsafe {
1086-
llvm::LLVMBuildAtomicCmpXchg(self.llbuilder, dst, cmp, src,
1086+
llvm::LLVMRustBuildAtomicCmpXchg(self.llbuilder, dst, cmp, src,
10871087
order, failure_order, weak)
10881088
}
10891089
}

src/rustllvm/RustWrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ extern "C" LLVMTypeRef LLVMMetadataTypeInContext(LLVMContextRef C) {
9999
return wrap(Type::getMetadataTy(*unwrap(C)));
100100
}
101101

102-
extern "C" void LLVMAddCallSiteAttribute(LLVMValueRef Instr, unsigned index, uint64_t Val) {
102+
extern "C" void LLVMRustAddCallSiteAttribute(LLVMValueRef Instr, unsigned index, uint64_t Val) {
103103
CallSite Call = CallSite(unwrap<Instruction>(Instr));
104104
AttrBuilder B;
105105
B.addRawValue(Val);
@@ -203,7 +203,7 @@ extern "C" LLVMValueRef LLVMBuildAtomicStore(LLVMBuilderRef B,
203203
return wrap(unwrap(B)->Insert(si));
204204
}
205205

206-
extern "C" LLVMValueRef LLVMBuildAtomicCmpXchg(LLVMBuilderRef B,
206+
extern "C" LLVMValueRef LLVMRustBuildAtomicCmpXchg(LLVMBuilderRef B,
207207
LLVMValueRef target,
208208
LLVMValueRef old,
209209
LLVMValueRef source,

0 commit comments

Comments
 (0)