diff options
author | Devang Patel <dpatel@apple.com> | 2009-01-08 23:40:34 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-01-08 23:40:34 +0000 |
commit | eb3fc289141ad44883acbb91e839ab1b9a0f2025 (patch) | |
tree | ba35a1e9f588e7ef801a8f2432cd92f1a63a1435 /include/llvm | |
parent | 5d5ee80ea8bf300d1ee8ccbd7174466d98a1e99e (diff) | |
download | external_llvm-eb3fc289141ad44883acbb91e839ab1b9a0f2025.zip external_llvm-eb3fc289141ad44883acbb91e839ab1b9a0f2025.tar.gz external_llvm-eb3fc289141ad44883acbb91e839ab1b9a0f2025.tar.bz2 |
Convert DwarfWriter into a pass.
Now Users request DwarfWriter through getAnalysisUsage() instead of creating an instance of DwarfWriter object directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/DwarfWriter.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/DwarfWriter.h b/include/llvm/CodeGen/DwarfWriter.h index 8614eec..7ed5e61 100644 --- a/include/llvm/CodeGen/DwarfWriter.h +++ b/include/llvm/CodeGen/DwarfWriter.h @@ -20,6 +20,8 @@ #ifndef LLVM_CODEGEN_DWARFWRITER_H #define LLVM_CODEGEN_DWARFWRITER_H +#include "llvm/Pass.h" + namespace llvm { class AsmPrinter; @@ -35,7 +37,7 @@ class raw_ostream; // DwarfWriter - Emits Dwarf debug and exception handling directives. // -class DwarfWriter { +class DwarfWriter : public ImmutablePass { private: /// DD - Provides the DwarfWriter debug implementation. /// @@ -46,20 +48,19 @@ private: DwarfException *DE; public: - DwarfWriter(raw_ostream &OS, AsmPrinter *A, const TargetAsmInfo *T); + static char ID; // Pass identification, replacement for typeid + + DwarfWriter(); virtual ~DwarfWriter(); - /// SetModuleInfo - Set machine module info when it's known that pass manager - /// has created it. Set by the target AsmPrinter. - void SetModuleInfo(MachineModuleInfo *MMI); - //===--------------------------------------------------------------------===// // Main entry points. // /// BeginModule - Emit all Dwarf sections that should come prior to the /// content. - void BeginModule(Module *M); + void BeginModule(Module *M, MachineModuleInfo *MMI, raw_ostream &OS, + AsmPrinter *A, const TargetAsmInfo *T); /// EndModule - Emit all Dwarf sections that should come after the content. /// |