[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-10-04 Thread Shoaib Meenai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC343808: [AST] Revert mangling changes from r339428 (authored by smeenai, committed by ). Changed prior to commit: https://reviews.llvm.org/D52581?vs=167219&id=168354#toc Repository: rC Clang https:/

[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-10-01 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. I think going back to the old mangling makes sense. Regarding memory management, I assume that the C++ code is just forward declaring objective C class and interface types so it can pass them around

[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-09-28 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. https://reviews.llvm.org/D52674 adds the RTTI Obj-C discriminator. I put it up as a separate change so it could be reviewed independently and more thoroughly. Repository: rC Clang https://reviews.llvm.org/D52581 ___ cfe-

[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-09-28 Thread David Chisnall via Phabricator via cfe-commits
theraven added a comment. In https://reviews.llvm.org/D52581#1248306, @smeenai wrote: > The simplest option is something like https://reviews.llvm.org/P8109, where > we add a `.objc` discriminator when mangling the RTTI itself. It would > require the GNUStep runtime for Windows to be altered ac

[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-09-27 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a subscriber: rnk. smeenai added a comment. Adding @rnk, since this'll touch MS ABI mangling. For context, we want `struct X` to have the same mangling as `@interface X` normally, but we want to be able to distinguish them for the purpose of exception handling. See this diff's sum

[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-09-27 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. In https://reviews.llvm.org/D52581#1247409, @theraven wrote: > > I would have done the same for the GNUstep RTTI here, except I don't > > actually > > see the code for that anywhere, and no tests seem to break either, so I > > believe it's not upstreamed yet. > > I'm n

[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-09-27 Thread David Chisnall via Phabricator via cfe-commits
theraven added a comment. > I would have done the same for the GNUstep RTTI here, except I don't actually > see the code for that anywhere, and no tests seem to break either, so I > believe it's not upstreamed yet. I'm not sure I understand this comment. The compiler code is in LLVM and the t

[PATCH] D52581: [AST] Revert mangling changes from r339428

2018-09-26 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai created this revision. smeenai added reviewers: compnerd, rjmccall, theraven, DHowett-MSFT. As discussed in https://reviews.llvm.org/D50144, we want Obj-C classes to have the same mangling as C++ structs, to support headers like the following: #ifdef __OBJC__ @class I; #else struc