Skip to content

Commit 8c5d908

Browse files
committed
---
yaml --- r: 225087 b: refs/heads/stable c: 847c852 h: refs/heads/master i: 225085: e90b153 225083: ba4678f 225079: 72d9dd2 225071: 341dac4 225055: 3ed1028 225023: 33d095d v: v3
1 parent 2503c90 commit 8c5d908

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: b538189ba0abb77658c7b082d2d541daaaa7f80a
32+
refs/heads/stable: 847c8520b14e3ae9aec26a33f70750a071d3f18d
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b

branches/stable/src/librustc_llvm/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@ extern {
17711771
Dialect: c_uint)
17721772
-> ValueRef;
17731773

1774-
pub static LLVMRustDebugMetadataVersion: u32;
1774+
pub fn LLVMRustDebugMetadataVersion() -> u32;
17751775

17761776
pub fn LLVMRustAddModuleFlag(M: ModuleRef,
17771777
name: *const c_char,

branches/stable/src/librustc_trans/trans/debuginfo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ pub fn finalize(cx: &CrateContext) {
193193
// Prevent bitcode readers from deleting the debug info.
194194
let ptr = "Debug Info Version\0".as_ptr();
195195
llvm::LLVMRustAddModuleFlag(cx.llmod(), ptr as *const _,
196-
llvm::LLVMRustDebugMetadataVersion);
196+
llvm::LLVMRustDebugMetadataVersion());
197197
};
198198
}
199199

branches/stable/src/rustllvm/RustWrapper.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ DIT unwrapDI(LLVMMetadataRef ref) {
233233
return DIT(ref ? unwrap<MDNode>(ref) : NULL);
234234
}
235235

236-
extern "C" const uint32_t LLVMRustDebugMetadataVersion = DEBUG_METADATA_VERSION;
236+
extern "C" const uint32_t LLVMRustDebugMetadataVersion() {
237+
return DEBUG_METADATA_VERSION;
238+
}
237239

238240
extern "C" void LLVMRustAddModuleFlag(LLVMModuleRef M,
239241
const char *name,

0 commit comments

Comments
 (0)