From 68fb469aeb19144403e703b825854d08353c8eea Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 3 Apr 2009 20:51:31 +0000 Subject: Driver: Explicitly ignore -fpch-preprocess when using clang, we don't need to do anything special to support this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68403 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/ArgList.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/Driver/ArgList.cpp') diff --git a/lib/Driver/ArgList.cpp b/lib/Driver/ArgList.cpp index 6d19f1acc5..69cb85b7fc 100644 --- a/lib/Driver/ArgList.cpp +++ b/lib/Driver/ArgList.cpp @@ -140,6 +140,15 @@ void ArgList::AddAllArgsTranslated(ArgStringList &Output, options::ID Id0, } } +void ArgList::ClaimAllArgs(options::ID Id0) const { + // FIXME: Make fast. + for (const_iterator it = begin(), ie = end(); it != ie; ++it) { + const Arg *A = *it; + if (A->getOption().matches(Id0)) + A->claim(); + } +} + // InputArgList::InputArgList(const char **ArgBegin, const char **ArgEnd) -- cgit v1.2.3-18-g5258