[PATCH] D62264: [CommandLine] WIP: Add new debug_opt that reduces down to size of DataType in Release builds.
Don Hinton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 22 11:17:43 PDT 2019
hintonda created this revision.
hintonda added a reviewer: beanz.
Herald added a subscriber: hiraditya.
Herald added a reviewer: jfb.
Herald added a project: LLVM.
Added a new Option template, `cl::debug_opt`, to the
CommandLine parser that aliases to `cl::opt` in debug builds, but
decays to a simple class containing only the initialized DataType in
Release builds.
`debug_opt`s are also removed from the parser in release builds, so
they don't take up any additional memory, and are designed to be a
drop-in replacement for `cl::opt`.
`cl::OptionCategory` and `cl::SubCommand` also have debug versions
which disappear in release builds.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D62264
Files:
llvm/include/llvm/Support/CommandLine.h
llvm/lib/Support/Signals.cpp
llvm/unittests/Support/CommandLineTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62264.200797.patch
Type: text/x-patch
Size: 7330 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190522/6133d43e/attachment.bin>
More information about the llvm-commits
mailing list