summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-10-26 01:05:54 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-10-26 01:05:54 +0000
commitfda59e5851215850f9b9b534bfd8bda579089029 (patch)
tree5275243be051d4b8a2e4728a161cbea4e948ec66 /clang/lib/Lex/ModuleMap.cpp
parent7ae21772627a6ce81ad0527640db55daf59bc999 (diff)
downloadbcm5719-llvm-fda59e5851215850f9b9b534bfd8bda579089029.tar.gz
bcm5719-llvm-fda59e5851215850f9b9b534bfd8bda579089029.zip
Implement name mangling proposal for exception specifications from cxx-abi-dev 2016-10-11.
This has the following ABI impact: 1) Functions whose parameter or return types are non-throwing function pointer types have different manglings in c++1z mode from prior modes. This is necessary because c++1z permits overloading on the noexceptness of function pointer parameter types. A warning is issued for cases that will change manglings in c++1z mode. 2) Functions whose parameter or return types contain instantiation-dependent exception specifications change manglings in all modes. This is necessary to support overloading on / SFINAE in these exception specifications, which a careful reading of the standard indicates has essentially always been permitted. Note that, in order to be affected by these changes, the code in question must specify an exception specification on a function pointer/reference type that is written syntactically within the declaration of another function. Such declarations are very rare, and I have so far been unable to find any code that would be affected by this. (Note that such things will probably become more common in C++17, since it's a lot easier to get a noexcept function type as a function parameter / return type there.) This change does not affect the set of symbols produced by a build of clang, libc++, or libc++abi. llvm-svn: 285150
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud