|
8 | 8 | // option. This file may not be copied, modified, or distributed
|
9 | 9 | // except according to those terms.
|
10 | 10 |
|
11 |
| -// FIXME: Rename 'DIGlobalVariable' to 'DIGlobalVariableExpression' |
12 |
| -// once support for LLVM 3.9 is dropped. |
13 |
| -// |
14 |
| -// This method was changed in this LLVM patch: |
15 |
| -// https://reviews.llvm.org/D26769 |
16 |
| - |
17 | 11 | use super::debuginfo::{
|
18 | 12 | DIBuilder, DIDescriptor, DIFile, DILexicalBlock, DISubprogram, DIType,
|
19 | 13 | DIBasicType, DIDerivedType, DICompositeType, DIScope, DIVariable,
|
20 |
| - DIGlobalVariable, DIArray, DISubrange, DITemplateTypeParameter, DIEnumerator, |
| 14 | + DIGlobalVariableExpression, DIArray, DISubrange, DITemplateTypeParameter, DIEnumerator, |
21 | 15 | DINameSpace, DIFlags,
|
22 | 16 | };
|
23 | 17 |
|
@@ -447,7 +441,7 @@ pub mod debuginfo {
|
447 | 441 | pub type DIDerivedType = DIType;
|
448 | 442 | pub type DICompositeType = DIDerivedType;
|
449 | 443 | pub type DIVariable = DIDescriptor;
|
450 |
| - pub type DIGlobalVariable = DIDescriptor; |
| 444 | + pub type DIGlobalVariableExpression = DIDescriptor; |
451 | 445 | pub type DIArray = DIDescriptor;
|
452 | 446 | pub type DISubrange = DIDescriptor;
|
453 | 447 | pub type DIEnumerator = DIDescriptor;
|
@@ -1330,7 +1324,7 @@ extern "C" {
|
1330 | 1324 | Val: &'a Value,
|
1331 | 1325 | Decl: Option<&'a DIDescriptor>,
|
1332 | 1326 | AlignInBits: u32)
|
1333 |
| - -> &'a DIGlobalVariable; |
| 1327 | + -> &'a DIGlobalVariableExpression; |
1334 | 1328 |
|
1335 | 1329 | pub fn LLVMRustDIBuilderCreateVariable(Builder: &DIBuilder<'a>,
|
1336 | 1330 | Tag: c_uint,
|
|
0 commit comments