r301470 - Fix API breaks
Vedant Kumar via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 26 14:14:27 PDT 2017
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
More information about the cfe-commits
mailing list