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
This commit is contained in:
Daniel Malea
2013-05-23 22:34:33 +00:00
parent edaa58ee66
commit f8c243abba
4 changed files with 189 additions and 121 deletions

View File

@ -80,7 +80,9 @@ FunctionPass *createBoundsCheckingPass();
/// createDebugIRPass - Create and return a pass that modifies a module's
/// debug metadata to point back to IR instead of the original source file
ModulePass *createDebugIRPass(StringRef FilenamePostfix);
ModulePass *createDebugIRPass(StringRef FilenamePostfix,
bool hideDebugIntrinsics = true,
bool hideDebugMetadata = true);
} // End llvm namespace