mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 23:20:40 +03:00
First try at fixing gen_gccbuiltins for LLVM 3.6.
The referenced type is private therefore a LLVM change is required, too.
This commit is contained in:
parent
fc4821ac7e
commit
b58f4e7173
1 changed files with 8 additions and 0 deletions
|
@ -153,10 +153,18 @@ bool emit(raw_ostream& os, RecordKeeper& records)
|
|||
os << arch;
|
||||
os << "; \n\nimport core.simd;\n\n";
|
||||
|
||||
#if LDC_LLVM_VER >= 306
|
||||
const RecordKeeper::RecordMap& defs = records.getDefs();
|
||||
#else
|
||||
map<string, Record*> defs = records.getDefs();
|
||||
#endif
|
||||
|
||||
for(
|
||||
#if LDC_LLVM_VER >= 306
|
||||
RecordKeeper::RecordMap::const_iterator it = defs.cbegin();
|
||||
#else
|
||||
map<string, Record* >::iterator it = defs.begin();
|
||||
#endif
|
||||
it != defs.end();
|
||||
it++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue