Skip to content

Commit c8c0860

Browse files
committed
---
yaml --- r: 214551 b: refs/heads/beta c: 847c852 h: refs/heads/master i: 214549: 0b587b6 214547: ac90a6f 214543: 0f589c2 v: v3
1 parent 325de07 commit c8c0860

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
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: b538189ba0abb77658c7b082d2d541daaaa7f80a
26+
refs/heads/beta: 847c8520b14e3ae9aec26a33f70750a071d3f18d
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 8c0aa6d64ebab528f7eb182812007155d6044972
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/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/beta/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/beta/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)