debuginfo: Wrapped namespace facilities of llvm::DIBuilder

This commit is contained in:
Michael Woerister 2013-09-05 13:29:30 +02:00
parent 917d3c28b6
commit 382cb500be
3 changed files with 26 additions and 3 deletions

View File

@ -2109,6 +2109,14 @@ pub mod llvm {
ArgNo: c_uint)
-> ValueRef;
#[fast_ffi]
pub fn LLVMDIBuilderCreateNameSpace(Builder: DIBuilderRef,
Scope: ValueRef,
Name: *c_char,
File: ValueRef,
LineNo: c_uint)
-> ValueRef;
#[fast_ffi]
pub fn LLVMIsAArgument(value_ref: ValueRef) -> ValueRef;

View File

@ -727,9 +727,9 @@ extern "C" LLVMValueRef LLVMDIBuilderCreateTemplateTypeParameter(
LLVMValueRef Scope,
const char* Name,
LLVMValueRef Ty,
LLVMValueRef File = 0,
unsigned LineNo = 0,
unsigned ColumnNo = 0)
LLVMValueRef File,
unsigned LineNo,
unsigned ColumnNo)
{
return wrap(Builder->createTemplateTypeParameter(
unwrapDI<DIDescriptor>(Scope),
@ -775,3 +775,17 @@ extern "C" LLVMValueRef LLVMDIBuilderCreateComplexVariable(
ArgNo
));
}
extern "C" LLVMValueRef LLVMDIBuilderCreateNameSpace(
DIBuilderRef Builder,
LLVMValueRef Scope,
const char* Name,
LLVMValueRef File,
unsigned LineNo)
{
return wrap(Builder->createNameSpace(
unwrapDI<DIDescriptor>(Scope),
Name,
unwrapDI<DIFile>(File),
LineNo));
}

View File

@ -611,6 +611,7 @@ LLVMDIBuilderCreateTemplateTypeParameter
LLVMDIBuilderCreateOpDeref
LLVMDIBuilderCreateOpPlus
LLVMDIBuilderCreateComplexVariable
LLVMDIBuilderCreateNameSpace
LLVMSetUnnamedAddr
LLVMRustAddPass
LLVMRustAddAnalysisPasses