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 2
2
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5
- refs/heads/try: b538189ba0abb77658c7b082d2d541daaaa7f80a
5
+ refs/heads/try: 847c8520b14e3ae9aec26a33f70750a071d3f18d
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
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