From 61e01721978af4c2979c4b9153e56e72eb6389fb Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Mon, 6 May 2013 21:56:35 +0000 Subject: Implemented public interface for modifying registered (not positional or sink options) command line options at runtime. Patch by Dan Liew! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181254 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/CommandLine.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/Support/CommandLine.cpp') diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 8e937794be..18d3db527b 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -1596,3 +1596,13 @@ void cl::AddExtraVersionPrinter(void (*func)()) { ExtraVersionPrinters->push_back(func); } + +void cl::getRegisteredOptions(StringMap &Map) +{ + // Get all the options. + SmallVector PositionalOpts; //NOT USED + SmallVector SinkOpts; //NOT USED + assert(Map.size() == 0 && "StringMap must be empty"); + GetOptionInfo(PositionalOpts, SinkOpts, Map); + return; +} -- cgit v1.2.3-70-g09d2