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)
commit40a218658ae01a78f1a5954390610644efcaa90b
treeabe6d6dcc771d83c6e8c7df5ebe68da636ce0173
parent6db0df8f767eddb8e4406afe81d0f631e64d5b0d
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226864 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachinePassRegistry.h
include/llvm/IR/LegacyPassNameParser.h
include/llvm/Support/CommandLine.h
lib/IR/Pass.cpp