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:
kai 2014-09-05 16:31:15 +02:00
parent fc4821ac7e
commit b58f4e7173

View file

@ -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++)
{