File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
librustc_trans/trans/debuginfo Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
23
23
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
24
24
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
25
25
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26
- refs/heads/beta: b538189ba0abb77658c7b082d2d541daaaa7f80a
26
+ refs/heads/beta: 847c8520b14e3ae9aec26a33f70750a071d3f18d
27
27
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28
28
refs/heads/tmp: 8c0aa6d64ebab528f7eb182812007155d6044972
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
Original file line number Diff line number Diff line change @@ -1771,7 +1771,7 @@ extern {
1771
1771
Dialect : c_uint )
1772
1772
-> ValueRef ;
1773
1773
1774
- pub static LLVMRustDebugMetadataVersion : u32 ;
1774
+ pub fn LLVMRustDebugMetadataVersion ( ) -> u32 ;
1775
1775
1776
1776
pub fn LLVMRustAddModuleFlag ( M : ModuleRef ,
1777
1777
name : * const c_char ,
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ pub fn finalize(cx: &CrateContext) {
193
193
// Prevent bitcode readers from deleting the debug info.
194
194
let ptr = "Debug Info Version\0 " . as_ptr ( ) ;
195
195
llvm:: LLVMRustAddModuleFlag ( cx. llmod ( ) , ptr as * const _ ,
196
- llvm:: LLVMRustDebugMetadataVersion ) ;
196
+ llvm:: LLVMRustDebugMetadataVersion ( ) ) ;
197
197
} ;
198
198
}
199
199
Original file line number Diff line number Diff line change @@ -233,7 +233,9 @@ DIT unwrapDI(LLVMMetadataRef ref) {
233
233
return DIT (ref ? unwrap<MDNode>(ref) : NULL );
234
234
}
235
235
236
- extern " C" const uint32_t LLVMRustDebugMetadataVersion = DEBUG_METADATA_VERSION;
236
+ extern " C" const uint32_t LLVMRustDebugMetadataVersion () {
237
+ return DEBUG_METADATA_VERSION;
238
+ }
237
239
238
240
extern " C" void LLVMRustAddModuleFlag (LLVMModuleRef M,
239
241
const char *name,
You can’t perform that action at this time.
0 commit comments