Updated phobos.patch. Fixed compilation of ldc1

This commit is contained in:
Alexey Prokhin
2011-01-08 13:06:44 +03:00
parent 3fe9912e62
commit d0c11fbcb2
4 changed files with 392 additions and 6723 deletions

View File

@@ -451,7 +451,9 @@ inline unsigned readlongBE(unsigned *p)
(((unsigned char *)p)[0] << 24);
}
#if IN_GCC
#if IN_LLVM
void Module::parse(bool gen_docs)
#elif IN_GCC
void Module::parse(bool dump_source)
#else
void Module::parse()
@@ -660,7 +662,11 @@ void Module::parse()
d_gcc_dump_source(srcname, "d.utf-8", buf, buflen);
#endif
}
#if IN_LLVM
Parser p(this, buf, buflen, gen_docs);
#else
Parser p(this, buf, buflen, docfile != NULL);
#endif
p.nextToken();
members = p.parseModule();
md = p.md;