diff options
| author | Ted Kremenek <kremenek@apple.com> | 2007-12-13 17:54:02 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2007-12-13 17:54:02 +0000 |
| commit | 685dc9b56e3e1224228aac0791dac7499890e47d (patch) | |
| tree | fcdfebadb0de19d4e19a296fb1d4863e754d923c /clang/Driver/TranslationUnit.h | |
| parent | 15ddcef648ce2c97ed9535521dc9a10432a0214b (diff) | |
| download | bcm5719-llvm-685dc9b56e3e1224228aac0791dac7499890e47d.tar.gz bcm5719-llvm-685dc9b56e3e1224228aac0791dac7499890e47d.zip | |
Changed set of top-level decls from a list to a vector.
llvm-svn: 45005
Diffstat (limited to 'clang/Driver/TranslationUnit.h')
| -rw-r--r-- | clang/Driver/TranslationUnit.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/Driver/TranslationUnit.h b/clang/Driver/TranslationUnit.h index b22ec469f53..e0fcdb431df 100644 --- a/clang/Driver/TranslationUnit.h +++ b/clang/Driver/TranslationUnit.h @@ -16,7 +16,7 @@ #include "clang/Basic/LangOptions.h" #include "llvm/Bitcode/SerializationFwd.h" #include "llvm/System/Path.h" -#include <list> +#include <vector> namespace clang { @@ -31,7 +31,7 @@ class Decl; class TranslationUnit { LangOptions LangOpts; ASTContext* Context; - std::list<Decl*> TopLevelDecls; + std::vector<Decl*> TopLevelDecls; explicit TranslationUnit() : Context(NULL) {} @@ -68,11 +68,11 @@ public: TopLevelDecls.push_back(d); } - typedef std::list<Decl*>::iterator iterator; + typedef std::vector<Decl*>::iterator iterator; iterator begin() { return TopLevelDecls.begin(); } iterator end() { return TopLevelDecls.end(); } - typedef std::list<Decl*>::const_iterator const_iterator; + typedef std::vector<Decl*>::const_iterator const_iterator; const_iterator begin() const { return TopLevelDecls.begin(); } const_iterator end() const { return TopLevelDecls.end(); } }; |

