1 //===-- OptionValueArgs.cpp -------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "lldb/Interpreter/OptionValueArgs.h"
14 // Other libraries and framework includes
16 #include "lldb/Interpreter/Args.h"
19 using namespace lldb_private;
22 OptionValueArgs::GetArgs (Args &args)
24 const uint32_t size = m_values.size();
25 std::vector<const char *> argv;
26 for (uint32_t i = 0; i<size; ++i)
28 const char *string_value = m_values[i]->GetStringValue ();
30 argv.push_back(string_value);
36 args.SetArguments(argv.size(), &argv[0]);
37 return args.GetArgumentCount();