aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2014-10-16 22:47:52 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2014-10-16 22:47:52 +0000
commite186319319600c36bd3b4c832e65f58f01217dff (patch)
treef2db63c5090fce01889ee8b49ae0bac50681171f /llvm/lib/Support/CommandLine.cpp
parent374b5aa170ba648e88ba36569b0c0ec698b9a3ef (diff)
downloadllvm-e186319319600c36bd3b4c832e65f58f01217dff.zip
llvm-e186319319600c36bd3b4c832e65f58f01217dff.tar.gz
llvm-e186319319600c36bd3b4c832e65f58f01217dff.tar.bz2
Introduce LLVMParseCommandLineOptions C API function.
llvm-svn: 219975
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 9d5f1580..172381b 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -17,6 +17,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Support/CommandLine.h"
+#include "llvm-c/Support.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallString.h"
@@ -1839,3 +1840,8 @@ void cl::getRegisteredOptions(StringMap<Option*> &Map)
GetOptionInfo(PositionalOpts, SinkOpts, Map);
return;
}
+
+void LLVMParseCommandLineOptions(int argc, const char *const *argv,
+ const char *Overview) {
+ llvm::cl::ParseCommandLineOptions(argc, argv, Overview);
+}