Several changes to optimizer related code.

- New functions codeGenOptLevel() and verifyModule() to remove code duplication
- Hidden option no-verify renamed to disable-verify and moved to optimizer (like opt tool)
- Removed global.params.noVerify
This commit is contained in:
kai 2012-08-16 23:26:52 +02:00
parent 34d595de26
commit e6a07ffdfe
8 changed files with 59 additions and 48 deletions

View file

@ -375,10 +375,6 @@ static cl::opt<MultiSetter, true, cl::parser<bool> > release("release",
cl::location(ReleaseSetter),
cl::ValueDisallowed);
cl::opt<bool, true> noVerify("noverify",
llvm::cl::desc("Do not run the validation pass before writing bitcode"),
cl::location(global.params.noVerify));
cl::opt<bool, true> singleObj("singleobj",
cl::desc("Create only a single output object file"),
cl::location(global.params.singleObj));