]> granicus.if.org Git - clang/commit
AST: Implement mangling support for function types without a prototype.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 7 Aug 2015 23:25:47 +0000 (23:25 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 7 Aug 2015 23:25:47 +0000 (23:25 +0000)
commit36d9fb5902fe376d3cc5bcf6fb0e94e53a7725d5
tree769b8ee3afefa44b4ea4d51492820e65fa83a60c
parent71fc60eade9615d8b993d65b10aa7ff655763e31
AST: Implement mangling support for function types without a prototype.

Function types without prototypes can arise when mangling a function type
within an overloadable function in C. We mangle these as the absence of
any parameter types (not even an empty parameter list).

Differential Revision: http://reviews.llvm.org/D11848

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244374 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ItaniumMangle.cpp
lib/AST/MicrosoftMangle.cpp
test/CodeGen/mangle-ms.c [new file with mode: 0644]
test/CodeGen/overloadable.c