Displaying 1 result from an estimated 1 matches for "0c206ab6".
2016 Aug 31
3
llvm::cl::opt and enums
I was adding a new option for our backend, and because of the nature of the
option I wanted to use an 'enum', something like:
enum Direction {
left,
right,
up,
down
};
cl:opt<Direction> myOpt("option-switch", cl::init(up), cl::desc("what it
does"), cl::Hidden);
This bit is fine, but then I wanted to change it on the command-line to