summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/StringList.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-05-22 19:34:17 +0000
committerZachary Turner <zturner@google.com>2015-05-22 19:34:17 +0000
commit279a2b75758f4c3c09652d3720c63e8549ce6a00 (patch)
treeff46bcb60113289874caf639b13b113e943c79c6 /lldb/source/Core/StringList.cpp
parent4f2a9726d4d1ed9f513926dc340b722978674e7b (diff)
downloadbcm5719-llvm-279a2b75758f4c3c09652d3720c63e8549ce6a00.tar.gz
bcm5719-llvm-279a2b75758f4c3c09652d3720c63e8549ce6a00.zip
Implement PlatformWindows::GetEnvironment.
This fixes a couple of tests that rely on being able to get the host's environment or spawn an inferior with specific arguments. llvm-svn: 238042
Diffstat (limited to 'lldb/source/Core/StringList.cpp')
-rw-r--r--lldb/source/Core/StringList.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Core/StringList.cpp b/lldb/source/Core/StringList.cpp
index d2fa8cfb4a8..4e07ba4a457 100644
--- a/lldb/source/Core/StringList.cpp
+++ b/lldb/source/Core/StringList.cpp
@@ -69,6 +69,12 @@ StringList::AppendString (const char *str, size_t str_len)
}
void
+StringList::AppendString(llvm::StringRef str)
+{
+ m_strings.push_back(str.str());
+}
+
+void
StringList::AppendList (const char **strv, int strc)
{
for (int i = 0; i < strc; ++i)
OpenPOWER on IntegriCloud