Skip to content

Commit 4607eea

Browse files
committed
---
yaml --- r: 211022 b: refs/heads/try c: 847c852 h: refs/heads/master v: v3
1 parent 8dcce58 commit 4607eea

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: b538189ba0abb77658c7b082d2d541daaaa7f80a
5+
refs/heads/try: 847c8520b14e3ae9aec26a33f70750a071d3f18d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

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