summaryrefslogtreecommitdiffstats
path: root/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-07-12 15:18:55 +0000
committerDouglas Gregor <dgregor@apple.com>2011-07-12 15:18:55 +0000
commit2207ec273ab5c7eb659ba4576d54aa5aa7ccead0 (patch)
tree278fac12e3f567c7ba94d2095f33faebd66406d7 /llvm/examples/ExceptionDemo/ExceptionDemo.cpp
parenta4fb836f06807fc8056262d3e853414e73115b66 (diff)
downloadbcm5719-llvm-2207ec273ab5c7eb659ba4576d54aa5aa7ccead0.tar.gz
bcm5719-llvm-2207ec273ab5c7eb659ba4576d54aa5aa7ccead0.zip
Improve name mangling for instantiation-dependent types that are not
dependent. This covers an odd class of types such as int (&)[sizeof(sizeof(T() + T()))]; which involve template parameters but, because of some trick typically involving a form of expression that is never type-dependent, resolve down to a non-dependent type. Such types need to be mangled essentially as they were written in the source code (involving template parameters), rather than via their canonical type. In general, instantiation-dependent types should be mangled as they were written in the source. However, since we can't do that now without non-trivial refactoring of the AST (see the new FIXME), I've gone for this partial solution: only use the as-written-in-the-source mangling for these strange types that are instantiation-dependent but not dependent. This provides better compatibility with previous incarnations of Clang and with GCC. In the future, we'd like to get this right. Fixes <rdar://problem/9663282>. llvm-svn: 134984
Diffstat (limited to 'llvm/examples/ExceptionDemo/ExceptionDemo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud