[PATCH] Refactoring cl::parser construction and initialization.

Chris Bieneman beanz at apple.com
Thu Jan 22 12:49:00 PST 2015


Hi dexonsmith,

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.

http://reviews.llvm.org/D7131

Files:
  include/llvm/CodeGen/MachinePassRegistry.h
  include/llvm/IR/LegacyPassNameParser.h
  include/llvm/Support/CommandLine.h
  lib/IR/Pass.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7131.18635.patch
Type: text/x-patch
Size: 15970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150122/7a56ee3f/attachment.bin>


More information about the llvm-commits mailing list