summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-10-18 09:09:24 +0000
committerJohn McCall <rjmccall@apple.com>2009-10-18 09:09:24 +0000
commitcebee16bc05ed6ca88041e916ef803b088f495f2 (patch)
treec0352965acb264ab0de2f219b33c20ab55dedaf2 /clang/lib/CodeGen/CodeGenModule.cpp
parent0b8db2dab78f101acea99bfe0702d4668a7273e2 (diff)
downloadbcm5719-llvm-cebee16bc05ed6ca88041e916ef803b088f495f2.tar.gz
bcm5719-llvm-cebee16bc05ed6ca88041e916ef803b088f495f2.zip
When performing template-substitution into a type, don't just replace the
TemplateTypeParmType with the substituted type directly; instead, replace it with a SubstTemplateTypeParmType which will note that the type was originally written as a template type parameter. This makes it reasonable to preserve source information even through template substitution. Also define the new SubstTemplateTypeParmType class, obviously. For consistency with current behavior, we stringize these types as if they were the underlying type. I'm not sure this is the right thing to do. At any rate, I paled at adding yet another clause to the don't-desugar 'if' statement, so I extracted a function to do it. The new function also does The Right Thing more often, I think: e.g. if we have a chain of typedefs leading to a vector type, we will now desugar all but the last one. llvm-svn: 84412
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud