diff options
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-rw-r--r-- | include/llvm/Support/CommandLine.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 774c214933..515b0bd00f 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -249,6 +249,12 @@ public: // void addArgument(); + /// Unregisters this option from the CommandLine system. + /// + /// This option must have been the last option registered. + /// For testing purposes only. + void removeArgument(); + Option *getNextRegisteredOption() const { return NextRegistered; } // Return the width of the option tag for printing... @@ -1646,6 +1652,10 @@ class alias : public Option { virtual void printOptionValue(size_t /*GlobalWidth*/, bool /*Force*/) const LLVM_OVERRIDE {} + virtual ValueExpected getValueExpectedFlagDefault() const LLVM_OVERRIDE { + return AliasFor->getValueExpectedFlag(); + } + void done() { if (!hasArgStr()) error("cl::alias must have argument name specified!"); |