blob: a8b00bb750d2e82570280e8eecadaacad2cf0508 [file] [log] [blame]
Daniel Dunbard77aac92009-03-04 17:10:42 +00001//===--- ArgList.cpp - Argument List Management -------------------------*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "clang/Driver/ArgList.h"
11#include "clang/Driver/Arg.h"
12
13using namespace clang::driver;
14
15ArgList::ArgList(const char **ArgBegin, const char **ArgEnd) {
16 ArgStrings.append(ArgBegin, ArgEnd);
17}
18
19ArgList::~ArgList() {
20 for (iterator it = begin(), ie = end(); it != ie; ++ie)
21 delete *it;
22}