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 @@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
10
10
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
11
11
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
12
12
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13
- refs/heads/auto: b538189ba0abb77658c7b082d2d541daaaa7f80a
13
+ refs/heads/auto: 847c8520b14e3ae9aec26a33f70750a071d3f18d
14
14
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
15
15
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
16
16
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
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