summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/Driver/Arg.h3
-rw-r--r--clang/include/clang/Driver/ArgList.h13
2 files changed, 1 insertions, 15 deletions
diff --git a/clang/include/clang/Driver/Arg.h b/clang/include/clang/Driver/Arg.h
index 317af97ea54..8d8f0942a05 100644
--- a/clang/include/clang/Driver/Arg.h
+++ b/clang/include/clang/Driver/Arg.h
@@ -11,7 +11,6 @@
#define CLANG_DRIVER_ARG_H_
#include "Util.h"
-#include "llvm/ADT/ilist_node.h"
namespace clang {
namespace driver {
@@ -25,7 +24,7 @@ namespace driver {
/// instances have an intrusive double linked list which is used by
/// ArgList to provide efficient iteration over all instances of a
/// particular option.
- class Arg : public llvm::ilist_node<Arg> {
+ class Arg {
private:
enum ArgClass {
PositionalArg = 0,
diff --git a/clang/include/clang/Driver/ArgList.h b/clang/include/clang/Driver/ArgList.h
index 52d4a19f793..9eefa8a1274 100644
--- a/clang/include/clang/Driver/ArgList.h
+++ b/clang/include/clang/Driver/ArgList.h
@@ -11,7 +11,6 @@
#define CLANG_DRIVER_ARGLIST_H_
#include "Util.h"
-#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallVector.h"
namespace clang {
@@ -37,11 +36,6 @@ namespace driver {
/// The full list of arguments.
arglist_type Args;
- /// A map of arguments by option ID; in conjunction with the
- /// intrusive list in Arg instances this allows iterating over all
- /// arguments for a particular option.
- llvm::DenseMap<unsigned, Arg*> ArgMap;
-
public:
ArgList(const char **ArgBegin, const char **ArgEnd);
ArgList(const ArgList &);
@@ -54,13 +48,6 @@ namespace driver {
const_iterator begin() const { return Args.begin(); }
const_iterator end() const { return Args.end(); }
-
- Arg *getArgForID(unsigned ID) const {
- llvm::DenseMap<unsigned, Arg*>::iterator it = ArgMap.find(ID);
- if (it != ArgMap.end())
- return it->second;
- return 0;
- }
};
} // end namespace driver
} // end namespace clang
OpenPOWER on IntegriCloud