Fixed -oq flag

This commit is contained in:
Alexey Prokhin
2011-01-06 15:50:47 +03:00
parent f57409958c
commit 81e0203a6c
3 changed files with 15 additions and 3 deletions

View File

@@ -575,7 +575,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()
@@ -788,7 +790,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;

View File

@@ -139,7 +139,9 @@ struct Module : Package
void setDocfile(); // set docfile member
#endif
void read(Loc loc); // read file
#if IN_GCC
#if IN_LLVM
void parse(bool gen_docs = false); // syntactic parse
#elif IN_GCC
void parse(bool dump_source = false); // syntactic parse
#else
void parse(); // syntactic parse

View File

@@ -802,9 +802,13 @@ LDC_TARGETS
if (!Module::rootModule)
Module::rootModule = m;
m->importedFrom = m;
m->buildTargetFiles(singleObj);
m->read(0);
#ifdef _DH
m->parse(global.params.doDocComments);
#else
m->parse();
#endif
m->buildTargetFiles(singleObj);
m->deleteObjFile();
if (m->isDocFile)
{