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 @@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: b538189ba0abb77658c7b082d2d541daaaa7f80a
32
+ refs/heads/stable: 847c8520b14e3ae9aec26a33f70750a071d3f18d
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
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