Remove an outdated comment; add one test to compare function pointer and block mangling
llvm-svn: 160783
This commit is contained in:
parent
a703956422
commit
3c80d5aa15
|
@ -1059,8 +1059,6 @@ void MicrosoftCXXNameMangler::mangleType(const FunctionProtoType *T,
|
|||
SourceRange) {
|
||||
// Structors only appear in decls, so at this point we know it's not a
|
||||
// structor type.
|
||||
// I'll probably have mangleType(MemberPointerType) call the mangleType()
|
||||
// method directly.
|
||||
mangleType(T, NULL, false, false);
|
||||
}
|
||||
void MicrosoftCXXNameMangler::mangleType(const FunctionNoProtoType *T,
|
||||
|
|
|
@ -120,9 +120,13 @@ void delta(int * const a, const long &) {}
|
|||
void epsilon(int a[][10][20]) {}
|
||||
// CHECK: @"\01?epsilon@@YAXQAY19BE@H@Z"
|
||||
|
||||
// Blocks mangling (Clang extension).
|
||||
void zeta(int (^)(int, int)) {}
|
||||
// CHECK: @"\01?zeta@@YAXP_EAHHH@Z@Z"
|
||||
void zeta(int (*)(int, int)) {}
|
||||
// CHECK: @"\01?zeta@@YAXP6AHHH@Z@Z"
|
||||
|
||||
// Blocks mangling (Clang extension). A block should be mangled slightly
|
||||
// differently from a similar function pointer.
|
||||
void eta(int (^)(int, int)) {}
|
||||
// CHECK: @"\01?eta@@YAXP_EAHHH@Z@Z"
|
||||
|
||||
void operator_new_delete() {
|
||||
char *ptr = new char;
|
||||
|
|
Loading…
Reference in New Issue