Re-implement DebugIR in a way that does not subclass AssemblyWriter:
authorDaniel Malea <daniel.malea@intel.com>
Thu, 23 May 2013 22:34:33 +0000 (22:34 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Thu, 23 May 2013 22:34:33 +0000 (22:34 +0000)
commitf8c243abba01d9d4fe53f7ab962139593f184400
treed9fb5c94dd9161d190eb00074ea6b8b0159e1b1d
parentedaa58ee66699b99841ee5dfdd485aedbae3bf90
Re-implement DebugIR in a way that does not subclass AssemblyWriter:
- move AsmWriter.h from public headers into lib
- marked all AssemblyWriter functions as non-virtual; no need to override them
- DebugIR now "plugs into" AssemblyWriter with an AssemblyAnnotationWriter helper
- exposed flags to control hiding of a) debug metadata b) debug intrinsic calls

C/R: Paul Redmond

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