Refactoring cl::parser construction and initialization.
authorChris Bieneman <beanz@apple.com>
Thu, 22 Jan 2015 21:01:12 +0000 (21:01 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 22 Jan 2015 21:01:12 +0000 (21:01 +0000)
commit799ef37d0235ea6bab9123a7f996ed9a9701ab82
tree73fc80ea3ea2ff0569f9a7555715de0452ae9ff6
parenta43872ccddac18eec0075304a8bd0ff904d67f5b
Refactoring cl::parser construction and initialization.

Summary:
Some parsers need references back to the option they are members of. This is used for handling the argument string as well as by the various pass name parsers for making pass names into flags.

Making parsers that need to refer back to the option have a reference to the option eliminates some of the members of various parsers, and enables further code cleanup.

Reviewers: dexonsmith

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D7131

llvm-svn: 226864
llvm/include/llvm/CodeGen/MachinePassRegistry.h
llvm/include/llvm/IR/LegacyPassNameParser.h
llvm/include/llvm/Support/CommandLine.h
llvm/lib/IR/Pass.cpp