r301470 - Fix API breaks

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 26 14:21:34 PDT 2017


On Wed, Apr 26, 2017 at 2:18 PM Vedant Kumar <vsk at apple.com> wrote:

>
> > On Apr 26, 2017, at 2:16 PM, David Blaikie <dblaikie at gmail.com> wrote:
> >
> > Sorry about that - thought I synced up moments before the commit.
>
> No worries, it's an innocent race.
>
>
> > Stuff like this is generally easier to fix forward, imho. Though the
> fact that this wouldn't've compiled without the changes does provide some
> misgivings about the quality of the patch (but I've certainly committed
> some things as shots from the hip that broke the build & were still good to
> fix forward)
>
> Understood. I guess I thought it was safer to revert in this case, because
> testing didn't include.. building clang?


Yeah - same thought, for sure.


> But it was a simple enough fix, I'll go with that next time.


I think either option's fine here - I wouldn't object to the revert (where
it's a hard build break for any compiler - the -Werror build breaks I tend
to be more interested in fixing forward) for precisely the reason you
mention. If clang was never built, how could this patch be well tested, etc.

Whichever suits you at the time seems fine :)


> Reverted my revert in r301472.
>

Thanks!


>
> vedant
>
> >
> >
> > On Wed, Apr 26, 2017 at 2:14 PM Vedant Kumar <vsk at apple.com> wrote:
> > Hi David,
> >
> > It looks like this conflicts with my revert. I will revert my revert,
> since this seems like it fixes things.
> >
> > vedant
> >
> > > On Apr 26, 2017, at 1:58 PM, David Blaikie via cfe-commits <
> cfe-commits at lists.llvm.org> wrote:
> > >
> > > Author: dblaikie
> > > Date: Wed Apr 26 15:58:21 2017
> > > New Revision: 301470
> > >
> > > URL: http://llvm.org/viewvc/llvm-project?rev=301470&view=rev
> > > Log:
> > > Fix API breaks
> > >
> > > Modified:
> > >    cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp
> > >    cfe/trunk/lib/CodeGen/MacroPPCallbacks.h
> > >
> > > Modified: cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp
> > > URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp?rev=301470&r1=301469&r2=301470&view=diff
> > >
> ==============================================================================
> > > --- cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp (original)
> > > +++ cfe/trunk/lib/CodeGen/MacroPPCallbacks.cpp Wed Apr 26 15:58:21 2017
> > > @@ -198,7 +198,8 @@ void MacroPPCallbacks::MacroDefined(cons
> > > }
> > >
> > > void MacroPPCallbacks::MacroUndefined(const Token &MacroNameTok,
> > > -                                      const MacroDefinition &MD) {
> > > +                                      const MacroDefinition &MD,
> > > +                                      const MacroDirective *Undef) {
> > >   IdentifierInfo *Id = MacroNameTok.getIdentifierInfo();
> > >   SourceLocation location =
> getCorrectLocation(MacroNameTok.getLocation());
> > >   Gen->getCGDebugInfo()->CreateMacro(getCurrentScope(),
> > >
> > > Modified: cfe/trunk/lib/CodeGen/MacroPPCallbacks.h
> > > URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/MacroPPCallbacks.h?rev=301470&r1=301469&r2=301470&view=diff
> > >
> ==============================================================================
> > > --- cfe/trunk/lib/CodeGen/MacroPPCallbacks.h (original)
> > > +++ cfe/trunk/lib/CodeGen/MacroPPCallbacks.h Wed Apr 26 15:58:21 2017
> > > @@ -110,8 +110,8 @@ public:
> > >   /// Hook called whenever a macro \#undef is seen.
> > >   ///
> > >   /// MD is released immediately following this callback.
> > > -  void MacroUndefined(const Token &MacroNameTok,
> > > -                      const MacroDefinition &MD) override;
> > > +  void MacroUndefined(const Token &MacroNameTok, const
> MacroDefinition &MD,
> > > +                      const MacroDirective *Undef) override;
> > > };
> > >
> > > } // end namespace clang
> > >
> > >
> > > _______________________________________________
> > > cfe-commits mailing list
> > > cfe-commits at lists.llvm.org
> > > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170426/d0588778/attachment-0001.html>


More information about the cfe-commits mailing list