summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-26 22:37:10 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-26 22:37:10 +0000
commit9da641912d4d36661d69aef225ffb6d770963479 (patch)
tree326e2fbf1d270d1245f45b078d1222195a03be89 /clang/lib/CodeGen/CGDebugInfo.cpp
parent678eaa90ab68d2cfff010a473eae4f26743c8cac (diff)
downloadbcm5719-llvm-9da641912d4d36661d69aef225ffb6d770963479.tar.gz
bcm5719-llvm-9da641912d4d36661d69aef225ffb6d770963479.zip
Improve source-location information in a C++ typeid (type) expression
by using TypeSourceInfo, cleaning up the representation somewhat. Teach getTypeOperand() to strip references and cv-qualifiers, providing the semantic view of the type without requiring any extra storage (the unmodified type remains within the TypeSourceInfo). This fixes a bug found by Boost's call_traits test. Finally, clean up semantic analysis, by splitting the ActOnCXXTypeid routine into ActOnCXXTypeId (the parser action) and two BuildCXXTypeId functions, which perform the semantic analysis for typeid(type) and typeid(expression), respectively. We now perform less work at template instantiation time (we don't look for std::type_info again) and can give better diagnostics. llvm-svn: 102393
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud