diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-06-24 19:09:55 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-06-24 19:09:55 +0000 |
| commit | 0de1fc4f416b3e94749ca84cdaede55b040a8b60 (patch) | |
| tree | 587b17eab4cb4c5de572293e2bb63903b041e23c /include/llvm/CodeGen | |
| parent | 1f522feabf25134249bc7894e04f5b89fa071b7f (diff) | |
sink management of DwarfWriter & MachineModuleInfo into the AsmPrinter base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74101 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
| -rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index dac1be88e0..dfb8dab487 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -33,6 +33,7 @@ namespace llvm { class GlobalVariable; class MachineConstantPoolEntry; class MachineConstantPoolValue; + class MachineModuleInfo; class DwarfWriter; class Mangler; class Section; @@ -58,9 +59,10 @@ namespace llvm { gcp_map_type GCMetadataPrinters; protected: - /// DW -This is needed because printDeclare() has to insert - /// DbgVariable entries into the dwarf table. This is a short term hack - /// that ought be fixed soon. + /// MMI - If available, this is a pointer to the current MachineModuleInfo. + MachineModuleInfo *MMI; + + /// DW - If available, this is a pointer to the current dwarf writer. DwarfWriter *DW; /// OptLevel - Generating code at a specific optimization level. |
