aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/ArgList.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-04 17:10:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-04 17:10:42 +0000
commit6ac1e2252b1a16fd8841c4b1af8fe41b820aa41d (patch)
treeb713aa052af6bd3f3695945d55bd4134786b5696 /lib/Driver/ArgList.cpp
parenta4cb9d3a36041301e59d90b2effb9aeb08488eba (diff)
Driver: Add ArgList implementation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ArgList.cpp')
-rw-r--r--lib/Driver/ArgList.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/Driver/ArgList.cpp b/lib/Driver/ArgList.cpp
new file mode 100644
index 0000000000..a8b00bb750
--- /dev/null
+++ b/lib/Driver/ArgList.cpp
@@ -0,0 +1,22 @@
+//===--- ArgList.cpp - Argument List Management -------------------------*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "clang/Driver/ArgList.h"
+#include "clang/Driver/Arg.h"
+
+using namespace clang::driver;
+
+ArgList::ArgList(const char **ArgBegin, const char **ArgEnd) {
+ ArgStrings.append(ArgBegin, ArgEnd);
+}
+
+ArgList::~ArgList() {
+ for (iterator it = begin(), ie = end(); it != ie; ++ie)
+ delete *it;
+}