[cfe-commits] r118372 - /cfe/trunk/lib/Frontend/ASTUnit.cpp
Ted Kremenek
kremenek at apple.com
Sat Nov 6 23:11:36 PDT 2010
Author: kremenek
Date: Sun Nov 7 01:11:36 2010
New Revision: 118372
URL: http://llvm.org/viewvc/llvm-project?rev=118372&view=rev
Log:
Change the StringSet used by CalculateHiddenNames() to use a BumpPtrAllocator.
Modified:
cfe/trunk/lib/Frontend/ASTUnit.cpp
Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=118372&r1=118371&r2=118372&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Sun Nov 7 01:11:36 2010
@@ -1611,11 +1611,11 @@
/// \brief Helper function that computes which global names are hidden by the
/// local code-completion results.
-void CalculateHiddenNames(const CodeCompletionContext &Context,
- CodeCompletionResult *Results,
- unsigned NumResults,
- ASTContext &Ctx,
- llvm::StringSet<> &HiddenNames) {
+static void CalculateHiddenNames(const CodeCompletionContext &Context,
+ CodeCompletionResult *Results,
+ unsigned NumResults,
+ ASTContext &Ctx,
+ llvm::StringSet<llvm::BumpPtrAllocator> &HiddenNames){
bool OnlyTagNames = false;
switch (Context.getKind()) {
case CodeCompletionContext::CCC_Recovery:
@@ -1698,7 +1698,7 @@
: (1 << (Context.getKind() - 1)));
// Contains the set of names that are hidden by "local" completion results.
- llvm::StringSet<> HiddenNames;
+ llvm::StringSet<llvm::BumpPtrAllocator> HiddenNames;
llvm::SmallVector<CodeCompletionString *, 4> StringsToDestroy;
typedef CodeCompletionResult Result;
llvm::SmallVector<Result, 8> AllResults;
More information about the cfe-commits
mailing list