Pull up AssemblyWriter interface into header to allow subclassing
authorDaniel Malea <daniel.malea@intel.com>
Wed, 8 May 2013 20:38:31 +0000 (20:38 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Wed, 8 May 2013 20:38:31 +0000 (20:38 +0000)
commitd0fef32e5f3700c7de6dfc50a1a3815659b7d19e
treee57a6c9be1dc8d14dca060527a258cdc301a3e39
parentf28e3c501e033f103405c03a4bbf848cb6e67a2a
Pull up AssemblyWriter interface into header to allow subclassing
- made all functions virtual so that subclasses can specialize them
- add printInstructionLine so that subclasses can choose whether or not to
  print the newline character (without having to implement printBasicBlock()
- added a second constructor to AssemblyWriter that does not require a
  SlotTracker, as required in order to keep the SlotTracker helper class outside
  AsmWriter.h and buried in the implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181466 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/AsmWriter.h [new file with mode: 0644]
lib/IR/AsmWriter.cpp