diff options
Diffstat (limited to 'tools/llvmc2/Tool.cpp')
-rw-r--r-- | tools/llvmc2/Tool.cpp | 21 |
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, ","); +} |