| //===--- lib/CodeGen/DwarfPrinter.cpp - Dwarf Printer ---------------------===// |
| // |
| // The LLVM Compiler Infrastructure |
| // |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| // |
| //===----------------------------------------------------------------------===// |
| // |
| // Emit general DWARF directives. |
| // |
| //===----------------------------------------------------------------------===// |
| |
| #include "DwarfPrinter.h" |
| #include "llvm/Module.h" |
| #include "llvm/CodeGen/AsmPrinter.h" |
| #include "llvm/CodeGen/MachineFrameInfo.h" |
| #include "llvm/CodeGen/MachineFunction.h" |
| #include "llvm/CodeGen/MachineModuleInfo.h" |
| #include "llvm/MC/MCAsmInfo.h" |
| #include "llvm/MC/MCContext.h" |
| #include "llvm/MC/MCExpr.h" |
| #include "llvm/MC/MCStreamer.h" |
| #include "llvm/MC/MCSymbol.h" |
| #include "llvm/Target/TargetData.h" |
| #include "llvm/Target/TargetFrameInfo.h" |
| #include "llvm/Target/TargetLoweringObjectFile.h" |
| #include "llvm/Target/TargetRegisterInfo.h" |
| #include "llvm/Target/TargetMachine.h" |
| #include "llvm/Support/Dwarf.h" |
| #include "llvm/Support/ErrorHandling.h" |
| #include "llvm/ADT/SmallString.h" |
| using namespace llvm; |
| |
| DwarfPrinter::DwarfPrinter(AsmPrinter *A) |
| : Asm(A), MAI(A->MAI), TD(Asm->TM.getTargetData()), |
| RI(Asm->TM.getRegisterInfo()), M(NULL), MF(NULL), MMI(NULL), |
| SubprogramCount(0) { |
| } |