[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-26 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:512 /// used to return an untyped selector (with the types field set to NULL). - llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel, + virtual llvm::Value *GetSelector(CodeGenFunction &CGF, Select

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-26 Thread David Chisnall via Phabricator via cfe-commits
theraven added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:512 /// used to return an untyped selector (with the types field set to NULL). - llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel, + virtual llvm::Value *GetSelector(CodeGenFunction &CGF, Select

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-26 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:512 /// used to return an untyped selector (with the types field set to NULL). - llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel, + virtual llvm::Value *GetSelector(CodeGenFunction &CGF, Select

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-26 Thread David Chisnall via Phabricator via cfe-commits
theraven added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:512 /// used to return an untyped selector (with the types field set to NULL). - llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel, + virtual llvm::Value *GetSelector(CodeGenFunction &CGF, Select

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-24 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:512 /// used to return an untyped selector (with the types field set to NULL). - llvm::Value *GetSelector(CodeGenFunction &CGF, Selector Sel, + virtual llvm::Value *GetSelector(CodeGenFunction &CGF, Select

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-22 Thread Gabor Buella via Phabricator via cfe-commits
GBuella added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:1056 +char c = Str[i]; +if (isalpha(c) || isnumber(c)) + StringName += c; GBuella wrote: > theraven wrote: > > Ka-Ka wrote: > > > The isnumber() function was added to cc

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-22 Thread Gabor Buella via Phabricator via cfe-commits
GBuella added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:1056 +char c = Str[i]; +if (isalpha(c) || isnumber(c)) + StringName += c; theraven wrote: > Ka-Ka wrote: > > The isnumber() function was added to cctype.h by Apple. I do

Re: [PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-22 Thread Hans Wennborg via cfe-commits
On Tue, May 22, 2018 at 10:31 AM, David Chisnall via Phabricator via cfe-commits wrote: > theraven added inline comments. > > > > Comment at: lib/CodeGen/CGObjCGNU.cpp:1056 > +char c = Str[i]; > +if (isalpha(c) || isnumber(c)) > + StringName += c; > --

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-22 Thread David Chisnall via Phabricator via cfe-commits
theraven added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:1056 +char c = Str[i]; +if (isalpha(c) || isnumber(c)) + StringName += c; Ka-Ka wrote: > The isnumber() function was added to cctype.h by Apple. I don't think it can >

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-22 Thread Karl-Johan Karlsson via Phabricator via cfe-commits
Ka-Ka added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:1056 +char c = Str[i]; +if (isalpha(c) || isnumber(c)) + StringName += c; The isnumber() function was added to cctype.h by Apple. I don't think it can be used in llvm. A

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-20 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Thanks, my comments seem to all be addressed. Repository: rC Clang https://reviews.llvm.org/D46052 ___ cfe-commits mailing list cfe-commit

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-20 Thread David Chisnall via Phabricator via cfe-commits
theraven marked 3 inline comments as done. theraven added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:439 + ArrayRef IvarOffsets, + ArrayRef IvarAlign, + ArrayRef IvarOwnership); --

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-07 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Thanks, the comments help a lot. Comment at: lib/CodeGen/CGObjCGNU.cpp:439 + ArrayRef IvarOffsets, + ArrayRef IvarAlign, + ArrayRef IvarOwnership); the

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-05-01 Thread David Chisnall via Phabricator via cfe-commits
theraven added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:439 + ArrayRef IvarOffsets, + ArrayRef IvarAlign, + ArrayRef IvarOwnership); DHowett-MSFT wrote: > While we'r

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-04-30 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:439 + ArrayRef IvarOffsets, + ArrayRef IvarAlign, + ArrayRef IvarOwnership); While we're here, is there v

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-04-28 Thread David Chisnall via Phabricator via cfe-commits
theraven added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:977 +if ((CGM.getTarget().getPointerWidth(0) == 64) && +(SL->getLength() < 9) && !isNonASCII) { + // Tiny strings are (roughly): rjmccall wrote: > Please hoist `SL->getLength()

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-04-26 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGObjCGNU.cpp:961 + GV->setSection(Section); +return GV; + } I'd encourage you to use ConstantBuilder whenever you would want to use this. Comment at: lib/CodeGen/CGObjCGNU.cpp:9

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-04-26 Thread David Chisnall via Phabricator via cfe-commits
theraven added a comment. In https://reviews.llvm.org/D46052#1078597, @rjmccall wrote: > Are you asking for a code review or a design review of the ABI? I don't think a design review is appropriate here, I am asking for a code review. > The second would be much easier to do from a design docu

[PATCH] D46052: GNUstep Objective-C ABI version 2

2018-04-25 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Are you asking for a code review or a design review of the ABI? The second would be much easier to do from a design document. Comment at: lib/CodeGen/CGObjCGNU.cpp:502 +for (const auto *I : Methods) + if (I->getImplementationControl() == Obj