Skip to content

Commit

Permalink
llvm: Switch back to LLVM trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Jan 13, 2012
1 parent 8685a1f commit bb1e797
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/comp/lib/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ native mod llvm {
fn LLVMMDNodeInContext(C: ContextRef, Vals: *ValueRef, Count: uint) ->
ValueRef;
fn LLVMMDNode(Vals: *ValueRef, Count: uint) -> ValueRef;
fn LLVMAddNamedMetadataOperand(M: ModuleRef, Str: sbuf, SLen: uint,
fn LLVMAddNamedMetadataOperand(M: ModuleRef, Str: sbuf,
Val: ValueRef);

/* Operations on scalar constants */
Expand Down
2 changes: 1 addition & 1 deletion src/comp/middle/debuginfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn llnull() -> ValueRef unsafe {

fn add_named_metadata(cx: @crate_ctxt, name: str, val: ValueRef) {
str::as_buf(name, {|sbuf|
llvm::LLVMAddNamedMetadataOperand(cx.llmod, sbuf, str::byte_len(name),
llvm::LLVMAddNamedMetadataOperand(cx.llmod, sbuf,
val)
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/llvm
Submodule llvm updated 1211 files
7 changes: 0 additions & 7 deletions src/rustllvm/RustWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,3 @@ extern "C" LLVMTypeRef LLVMMetadataTypeInContext(LLVMContextRef C) {
extern "C" LLVMTypeRef LLVMMetadataType(void) {
return LLVMMetadataTypeInContext(LLVMGetGlobalContext());
}

extern "C" void LLVMAddNamedMetadataOperand(LLVMModuleRef M, const char *Str,
unsigned SLen, LLVMValueRef Val)
{
NamedMDNode *N = unwrap(M)->getOrInsertNamedMetadata(StringRef(Str, SLen));
N->addOperand(unwrap<MDNode>(Val));
}

0 comments on commit bb1e797

Please sign in to comment.