Implement previously inoperative pragma(LDC_no_moduleinfo).

GitHub: Fixes #571.
This commit is contained in:
David Nadlinger 2014-07-10 01:08:29 +02:00
parent 1f45eadbfe
commit 04570399d4
5 changed files with 26 additions and 20 deletions

View file

@ -140,7 +140,8 @@ Pragma DtoGetPragma(Scope *sc, PragmaDeclaration *decl, std::string &arg1str)
error(Loc(), "takes no parameters");
fatal();
}
return LLVMno_moduleinfo;
sc->module->noModuleInfo = true;
return LLVMignore;
}
// pragma(LDC_alloca) { funcdecl(s) }