Skip to content

Commit bb1e797

Browse files
committed
llvm: Switch back to LLVM trunk
1 parent 8685a1f commit bb1e797

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

src/comp/lib/llvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ native mod llvm {
278278
fn LLVMMDNodeInContext(C: ContextRef, Vals: *ValueRef, Count: uint) ->
279279
ValueRef;
280280
fn LLVMMDNode(Vals: *ValueRef, Count: uint) -> ValueRef;
281-
fn LLVMAddNamedMetadataOperand(M: ModuleRef, Str: sbuf, SLen: uint,
281+
fn LLVMAddNamedMetadataOperand(M: ModuleRef, Str: sbuf,
282282
Val: ValueRef);
283283

284284
/* Operations on scalar constants */

src/comp/middle/debuginfo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn llnull() -> ValueRef unsafe {
7373

7474
fn add_named_metadata(cx: @crate_ctxt, name: str, val: ValueRef) {
7575
str::as_buf(name, {|sbuf|
76-
llvm::LLVMAddNamedMetadataOperand(cx.llmod, sbuf, str::byte_len(name),
76+
llvm::LLVMAddNamedMetadataOperand(cx.llmod, sbuf,
7777
val)
7878
})
7979
}

src/llvm

Submodule llvm updated 1211 files

src/rustllvm/RustWrapper.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,3 @@ extern "C" LLVMTypeRef LLVMMetadataTypeInContext(LLVMContextRef C) {
172172
extern "C" LLVMTypeRef LLVMMetadataType(void) {
173173
return LLVMMetadataTypeInContext(LLVMGetGlobalContext());
174174
}
175-
176-
extern "C" void LLVMAddNamedMetadataOperand(LLVMModuleRef M, const char *Str,
177-
unsigned SLen, LLVMValueRef Val)
178-
{
179-
NamedMDNode *N = unwrap(M)->getOrInsertNamedMetadata(StringRef(Str, SLen));
180-
N->addOperand(unwrap<MDNode>(Val));
181-
}

0 commit comments

Comments
 (0)