diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-17 22:10:55 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-17 22:10:55 +0000 |
commit | 9aca3c61c040d59f8824b0e5ee394d95ae8f6ac8 (patch) | |
tree | 141d8f782d18f625d7d99dc7d4ad72aad2d1767d /clang/lib/Basic/IdentifierTable.cpp | |
parent | 4e88ce68aeb093d66b028b947c102f8417a426db (diff) | |
download | llvm-9aca3c61c040d59f8824b0e5ee394d95ae8f6ac8.zip llvm-9aca3c61c040d59f8824b0e5ee394d95ae8f6ac8.tar.gz llvm-9aca3c61c040d59f8824b0e5ee394d95ae8f6ac8.tar.bz2 |
[Modules] Use global index to improve typo correction performance
Typo correction for an unqualified name needs to walk through all of the identifier tables of all modules.
When we have a global index, just walk its identifier table only.
rdar://13425732
llvm-svn: 179730
Diffstat (limited to 'clang/lib/Basic/IdentifierTable.cpp')
-rw-r--r-- | clang/lib/Basic/IdentifierTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/IdentifierTable.cpp b/clang/lib/Basic/IdentifierTable.cpp index 429d9d8..951c718 100644 --- a/clang/lib/Basic/IdentifierTable.cpp +++ b/clang/lib/Basic/IdentifierTable.cpp @@ -65,7 +65,7 @@ namespace { }; } -IdentifierIterator *IdentifierInfoLookup::getIdentifiers() const { +IdentifierIterator *IdentifierInfoLookup::getIdentifiers() { return new EmptyLookupIterator(); } |