Skip to content

Commit 6cc3189

Browse files
committed
Made the while DebugContext mutable, not just created_* hashes
Disabled create_arg
1 parent 868f9a8 commit 6cc3189

File tree

4 files changed

+248
-224
lines changed

4 files changed

+248
-224
lines changed

src/librustc/lib/llvm.rs

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,16 +1925,16 @@ pub mod llvm {
19251925

19261926

19271927
#[fast_ffi]
1928-
pub unsafe fn DIBuilder_new(M: ModuleRef) -> DIBuilderRef;
1928+
pub unsafe fn LLVMDIBuilderCreate(M: ModuleRef) -> DIBuilderRef;
19291929

19301930
#[fast_ffi]
1931-
pub unsafe fn DIBuilder_delete(Builder: DIBuilderRef);
1931+
pub unsafe fn LLVMDIBuilderDispose(Builder: DIBuilderRef);
19321932

19331933
#[fast_ffi]
1934-
pub unsafe fn DIBuilder_finalize(Builder: DIBuilderRef);
1934+
pub unsafe fn LLVMDIBuilderFinalize(Builder: DIBuilderRef);
19351935

19361936
#[fast_ffi]
1937-
pub unsafe fn DIBuilder_createCompileUnit(
1937+
pub unsafe fn LLVMDIBuilderCreateCompileUnit(
19381938
Builder: DIBuilderRef,
19391939
Lang: c_uint,
19401940
File: *c_char,
@@ -1946,19 +1946,19 @@ pub mod llvm {
19461946
SplitName: *c_char);
19471947

19481948
#[fast_ffi]
1949-
pub unsafe fn DIBuilder_createFile(
1949+
pub unsafe fn LLVMDIBuilderCreateFile(
19501950
Builder: DIBuilderRef,
19511951
Filename: *c_char,
19521952
Directory: *c_char) -> DIFile;
19531953

19541954
#[fast_ffi]
1955-
pub unsafe fn DIBuilder_createSubroutineType(
1955+
pub unsafe fn LLVMDIBuilderCreateSubroutineType(
19561956
Builder: DIBuilderRef,
19571957
File: DIFile,
19581958
ParameterTypes: DIArray) -> DICompositeType;
19591959

19601960
#[fast_ffi]
1961-
pub unsafe fn DIBuilder_createFunction(
1961+
pub unsafe fn LLVMDIBuilderCreateFunction(
19621962
Builder: DIBuilderRef,
19631963
Scope: DIDescriptor,
19641964
Name: *c_char,
@@ -1976,23 +1976,23 @@ pub mod llvm {
19761976
Decl: ValueRef) -> DISubprogram;
19771977

19781978
#[fast_ffi]
1979-
pub unsafe fn DIBuilder_createBasicType(
1979+
pub unsafe fn LLVMDIBuilderCreateBasicType(
19801980
Builder: DIBuilderRef,
19811981
Name: *c_char,
19821982
SizeInBits: c_ulonglong,
19831983
AlignInBits: c_ulonglong,
19841984
Encoding: c_uint) -> DIBasicType;
19851985

19861986
#[fast_ffi]
1987-
pub unsafe fn DIBuilder_createPointerType(
1987+
pub unsafe fn LLVMDIBuilderCreatePointerType(
19881988
Builder: DIBuilderRef,
19891989
PointeeTy: DIType,
19901990
SizeInBits: c_ulonglong,
19911991
AlignInBits: c_ulonglong,
19921992
Name: *c_char) -> DIDerivedType;
19931993

19941994
#[fast_ffi]
1995-
pub unsafe fn DIBuilder_createStructType(
1995+
pub unsafe fn LLVMDIBuilderCreateStructType(
19961996
Builder: DIBuilderRef,
19971997
Scope: DIDescriptor,
19981998
Name: *c_char,
@@ -2007,7 +2007,7 @@ pub mod llvm {
20072007
VTableHolder: ValueRef) -> DICompositeType;
20082008

20092009
#[fast_ffi]
2010-
pub unsafe fn DIBuilder_createMemberType(
2010+
pub unsafe fn LLVMDIBuilderCreateMemberType(
20112011
Builder: DIBuilderRef,
20122012
Scope: DIDescriptor,
20132013
Name: *c_char,
@@ -2020,15 +2020,15 @@ pub mod llvm {
20202020
Ty: DIType) -> DIDerivedType;
20212021

20222022
#[fast_ffi]
2023-
pub unsafe fn DIBuilder_createLexicalBlock(
2023+
pub unsafe fn LLVMDIBuilderCreateLexicalBlock(
20242024
Builder: DIBuilderRef,
20252025
Scope: DIDescriptor,
20262026
File: DIFile,
20272027
Line: c_uint,
20282028
Col: c_uint) -> DILexicalBlock;
20292029

20302030
#[fast_ffi]
2031-
pub unsafe fn DIBuilder_createLocalVariable(
2031+
pub unsafe fn LLVMDIBuilderCreateLocalVariable(
20322032
Builder: DIBuilderRef,
20332033
Tag: c_uint,
20342034
Scope: DIDescriptor,
@@ -2041,31 +2041,38 @@ pub mod llvm {
20412041
ArgNo: c_uint) -> DIVariable;
20422042

20432043
#[fast_ffi]
2044-
pub unsafe fn DIBuilder_createVectorType(
2044+
pub unsafe fn LLVMDIBuilderCreateVectorType(
20452045
Builder: DIBuilderRef,
20462046
Size: c_ulonglong,
20472047
AlignInBits: c_ulonglong,
20482048
Ty: DIType,
20492049
Subscripts: DIArray) -> DIType;
20502050

20512051
#[fast_ffi]
2052-
pub unsafe fn DIBuilder_getOrCreateSubrange(
2052+
pub unsafe fn LLVMDIBuilderGetOrCreateSubrange(
20532053
Builder: DIBuilderRef,
20542054
Lo: c_longlong,
20552055
Count: c_longlong) -> DISubrange;
20562056

20572057
#[fast_ffi]
2058-
pub unsafe fn DIBuilder_getOrCreateArray(
2058+
pub unsafe fn LLVMDIBuilderGetOrCreateArray(
20592059
Builder: DIBuilderRef,
20602060
Ptr: *DIDescriptor,
20612061
Count: c_uint) -> DIArray;
20622062

20632063
#[fast_ffi]
2064-
pub unsafe fn DIBuilder_insertDeclare(
2064+
pub unsafe fn LLVMDIBuilderInsertDeclareAtEnd(
20652065
Builder: DIBuilderRef,
20662066
Val: ValueRef,
20672067
VarInfo: DIVariable,
2068-
InsertBefore: *c_void) -> *c_void;
2068+
InsertAtEnd: BasicBlockRef) -> ValueRef;
2069+
2070+
#[fast_ffi]
2071+
pub unsafe fn LLVMDIBuilderInsertDeclareBefore(
2072+
Builder: DIBuilderRef,
2073+
Val: ValueRef,
2074+
VarInfo: DIVariable,
2075+
InsertBefore: ValueRef) -> ValueRef;
20692076
}
20702077
}
20712078

0 commit comments

Comments
 (0)