diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-12-10 08:57:38 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-12-10 08:57:38 +0000 |
| commit | 643526f086ef5bbdb3ab19d0c7ae07226241b9d0 (patch) | |
| tree | f42dccea56ae563d45a4f33baf378196af2681b3 /clang/lib/AST/ASTContext.cpp | |
| parent | 21c0fc18bfd470cd16401e71ad52a747c673f497 (diff) | |
| download | bcm5719-llvm-643526f086ef5bbdb3ab19d0c7ae07226241b9d0.tar.gz bcm5719-llvm-643526f086ef5bbdb3ab19d0c7ae07226241b9d0.zip | |
Move the "volatile" bit into QualType's "fast" qualifier set,
increasing the required type alignment from 8 to 16. This provides a
2.5% speedup for -fsyntax-only on a token-cached Cocoa.h, while only
increasing memory consumption in the ASTContext by 0.8%.
llvm-svn: 121474
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index d7dedc61697..9e46e8765c5 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -1090,17 +1090,6 @@ QualType ASTContext::getExtQualType(const Type *TypeNode, Qualifiers Quals) { return T; } -QualType ASTContext::getVolatileType(QualType T) { - QualType CanT = getCanonicalType(T); - if (CanT.isVolatileQualified()) return T; - - QualifierCollector Quals; - const Type *TypeNode = Quals.strip(T); - Quals.addVolatile(); - - return getExtQualType(TypeNode, Quals); -} - QualType ASTContext::getAddrSpaceQualType(QualType T, unsigned AddressSpace) { QualType CanT = getCanonicalType(T); if (CanT.getAddressSpace() == AddressSpace) |

