aboutsummaryrefslogtreecommitdiff
path: root/tools/llvmc2/Tool.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-05-06 16:34:12 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-05-06 16:34:12 +0000
commitb90cd834ca5a849fcfcb6bbca5d38f73f5c37fcf (patch)
tree06d11382719346c723e1b8ec588232fd39bd34da /tools/llvmc2/Tool.cpp
parentc8d9fe6bf92ac5a7ee48c328cd412bf052e6b07b (diff)
Code reorg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc2/Tool.cpp')
-rw-r--r--tools/llvmc2/Tool.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/llvmc2/Tool.cpp b/tools/llvmc2/Tool.cpp
new file mode 100644
index 0000000000..d0e703a9c1
--- /dev/null
+++ b/tools/llvmc2/Tool.cpp
@@ -0,0 +1,21 @@
+//===--- Tools.cpp - The LLVM Compiler Driver -------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open
+// Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// Tool abstract base class - implementation of the auxiliary functions.
+//
+//===----------------------------------------------------------------------===//
+
+#include "Tool.h"
+
+#include "llvm/ADT/StringExtras.h"
+
+void llvmcc::Tool::UnpackValues (const std::string& from,
+ std::vector<std::string>& to) {
+ llvm::SplitString(from, to, ",");
+}