[llvm] r181466 - Pull up AssemblyWriter interface into header to allow subclassing
Chris Lattner
clattner at apple.com
Tue May 21 21:57:59 PDT 2013
On May 21, 2013, at 1:03 PM, "Malea, Daniel" <daniel.malea at intel.com> wrote:
> Is it making the functions virtual that's worrisome, or are you
> uncomfortable with exposing the AssemblyWriter interface at all? This
> commit makes all the AssemblyWriter::print* functions virtual to keep the
> interface consistent.
My primary objection is making AssemblyWriter public. Virtually everything in it is an internal implementation detail. It should not be public.
> Really though, DebugIR's implementation only needs to "hook into"
> printInstructionLine() and printInstruction(), in order to:
A thin interface along the lines of llvm/Assembly/AssemblyAnnotationWriter.h (which I'm also not a huge fan of) is much preferable to making all of AssemblyWriter public.
-Chris
More information about the llvm-commits
mailing list