mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 08:01:11 +03:00
Fix LLVM 3.3 compile errors.
This commit is contained in:
parent
4ec9fbc011
commit
7fd4fc81c3
1 changed files with 6 additions and 0 deletions
|
@ -281,6 +281,9 @@ static llvm::DIType dwarfCompositeType(Type* type)
|
|||
getTypeBitSize(T), // size in bits
|
||||
getABITypeAlign(T)*8, // alignment in bits
|
||||
llvm::DIType::FlagFwdDecl, // flags
|
||||
#if LDC_LLVM_VER >= 303
|
||||
derivedFrom, // DerivedFrom
|
||||
#endif
|
||||
elemsArray
|
||||
);
|
||||
}
|
||||
|
@ -342,6 +345,9 @@ static llvm::DIType dwarfArrayType(Type* type) {
|
|||
getTypeBitSize(T), // size in bits
|
||||
getABITypeAlign(T)*8, // alignment in bits
|
||||
0, // What here?
|
||||
#if LDC_LLVM_VER >= 303
|
||||
llvm::DIType(), // DerivedFrom
|
||||
#endif
|
||||
gIR->dibuilder.getOrCreateArray(elems)
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue