Skip to content

Commit 02bc21f

Browse files
committed
---
yaml --- r: 7223 b: refs/heads/master c: bb1e797 h: refs/heads/master i: 7221: d130f4b 7219: 6785167 7215: 9aa8811 v: v3
1 parent 33c4bc1 commit 02bc21f

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 8685a1f7c49292c88eb5c4f76118b1d241303a0a
2+
refs/heads/master: bb1e79768cbee1d532ade39d72c2c51b99e14e3b

trunk/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 */

trunk/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
}

trunk/src/llvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 4fb132c803512f06f7cbc38baa6e86280912f800
1+
Subproject commit d578b905de8f9dece45aab2496a88ac548c67348

trunk/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)