diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-19 00:39:20 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-19 00:39:20 +0000 |
commit | e177b7254dd631370b1feef78938724c3004c675 (patch) | |
tree | c3180f0be3dcf4c40fe2155efbc3faf53bc8b718 /clang/lib/Sema/SemaDecl.cpp | |
parent | ec4bad509381c416db57701b87a3391ca6f90a7f (diff) | |
download | bcm5719-llvm-e177b7254dd631370b1feef78938724c3004c675.tar.gz bcm5719-llvm-e177b7254dd631370b1feef78938724c3004c675.zip |
Extend the use of QualifiedNameType to the creation of class template
specialization names. This way, we keep track of sugared types like
std::vector<Real>
I believe we are now using QualifiedNameTypes everywhere we can. Next
step: QualifiedDeclRefExprs.
llvm-svn: 67268
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 63d446f70c0..483b79a0984 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -87,13 +87,8 @@ Sema::TypeTy *Sema::getTypeName(IdentifierInfo &II, SourceLocation NameLoc, } else return 0; - if (SS && SS->isNotEmpty() && SS->isSet()) { - llvm::SmallVector<NestedNameSpecifier, 4> TNNs; - for (CXXScopeSpec::iterator TNN = SS->begin(), TNNEnd = SS->end(); - TNN != TNNEnd; ++TNN) - TNNs.push_back(NestedNameSpecifier::getFromOpaquePtr(*TNN)); - T = Context.getQualifiedNameType(&TNNs[0], TNNs.size(), T); - } + if (SS) + T = getQualifiedNameType(*SS, T); return T.getAsOpaquePtr(); } |