From 19b6310951281b9ab461b6ca6d77e1ee1022bce4 Mon Sep 17 00:00:00 2001 From: Josh Aas Date: Thu, 29 May 2014 00:45:36 -0500 Subject: [PATCH] Bug 1014384: Fix 'IPDL code generator generates implementation stubs for pure virtual methods'. r=bent --- ipc/ipdl/ipdl/cxx/cgen.py | 3 +++ ipc/ipdl/ipdl/lower.py | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ipc/ipdl/ipdl/cxx/cgen.py b/ipc/ipdl/ipdl/cxx/cgen.py index b07df7b9401..48b098876e6 100644 --- a/ipc/ipdl/ipdl/cxx/cgen.py +++ b/ipc/ipdl/ipdl/cxx/cgen.py @@ -217,6 +217,9 @@ class CxxCodeGen(CodePrinter, Visitor): def visitMethodDefn(self, md): + if md.decl.pure: + return + self.printdent() md.decl.accept(self) self.println() diff --git a/ipc/ipdl/ipdl/lower.py b/ipc/ipdl/ipdl/lower.py index b3d5109b49e..0c8a85fbdba 100644 --- a/ipc/ipdl/ipdl/lower.py +++ b/ipc/ipdl/ipdl/lower.py @@ -5460,7 +5460,6 @@ def _splitMethodDefn(md, clsname): md.decl.static = 0 md.decl.warn_unused = 0 md.decl.never_inline = 0 - md.decl.pure = 0 md.decl.only_for_definition = True for param in md.decl.params: if isinstance(param, Param):