aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/ArgList.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-07-20 21:16:17 +0000
committerChad Rosier <mcrosier@apple.com>2011-07-20 21:16:17 +0000
commitd7a3ba03f69892aac02e0771eb2e6d1b7b1d1267 (patch)
tree3915104cc5920d220fffd0edbde9544b191af173 /lib/Driver/ArgList.cpp
parente1809074d08f3a91bb2ef5f088b52bb46a08fb8a (diff)
Temporarily revert r135614 while I fix the cmake build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ArgList.cpp')
-rw-r--r--lib/Driver/ArgList.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Driver/ArgList.cpp b/lib/Driver/ArgList.cpp
index 30225fccb5..b8af9cc47e 100644
--- a/lib/Driver/ArgList.cpp
+++ b/lib/Driver/ArgList.cpp
@@ -46,16 +46,6 @@ void ArgList::append(Arg *A) {
Args.push_back(A);
}
-void ArgList::eraseArg(OptSpecifier Id) {
- for (iterator it = begin(), ie = end(); it != ie; ++it) {
- if ((*it)->getOption().matches(Id)) {
- Args.erase(it);
- it = begin();
- ie = end();
- }
- }
-}
-
Arg *ArgList::getLastArgNoClaim(OptSpecifier Id) const {
// FIXME: Make search efficient?
for (const_reverse_iterator it = rbegin(), ie = rend(); it != ie; ++it)
@@ -202,12 +192,6 @@ void ArgList::ClaimAllArgs(OptSpecifier Id0) const {
(*it)->claim();
}
-void ArgList::ClaimAllArgs() const {
- for (const_iterator it = begin(), ie = end(); it != ie; ++it)
- if (!(*it)->isClaimed())
- (*it)->claim();
-}
-
const char *ArgList::MakeArgString(const llvm::Twine &T) const {
llvm::SmallString<256> Str;
T.toVector(Str);