llvm.org GIT mirror llvm / c99fd87
Avoid including DebugInfo.h in AsmPrinter.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93864 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 10 years ago
6 changed file(s) with 8 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1616 #define LLVM_CODEGEN_ASMPRINTER_H
1717
1818 #include "llvm/CodeGen/MachineFunctionPass.h"
19 #include "llvm/Analysis/DebugInfo.h"
2019 #include "llvm/Support/DebugLoc.h"
2120 #include "llvm/Target/TargetMachine.h"
2221 #include "llvm/ADT/DenseMap.h"
4847 class MCSection;
4948 class MCStreamer;
5049 class MCSymbol;
50 class MDNode;
5151 class DwarfWriter;
5252 class Mangler;
5353 class MCAsmInfo;
152152 mutable unsigned Counter;
153153
154154 // Private state for processDebugLoc()
155 mutable DILocation PrevDLT;
155 mutable const MDNode *PrevDLT;
156156
157157 protected:
158158 explicit AsmPrinter(formatted_raw_ostream &o, TargetMachine &TM,
2525
2626 namespace llvm {
2727
28 class DILocation;
2829 class Value;
2930 class Function;
3031 class MachineRegisterInfo;
15111511 return;
15121512
15131513 if (BeforePrintingInsn) {
1514 if (CurDLT.getNode() != PrevDLT.getNode()) {
1514 if (CurDLT.getNode() != PrevDLT) {
15151515 unsigned L = DW->RecordSourceLine(CurDLT.getLineNumber(),
15161516 CurDLT.getColumnNumber(),
15171517 CurDLT.getScope().getNode());
15181518 printLabel(L);
15191519 O << '\n';
15201520 DW->BeginScope(MI, L);
1521 PrevDLT = CurDLT;
1521 PrevDLT = CurDLT.getNode();
15221522 }
15231523 } else {
15241524 // After printing instruction
2525 #include "llvm/CodeGen/MachineJumpTableInfo.h"
2626 #include "llvm/CodeGen/MachineRegisterInfo.h"
2727 #include "llvm/CodeGen/Passes.h"
28 #include "llvm/Analysis/DebugInfo.h"
2829 #include "llvm/Support/Debug.h"
2930 #include "llvm/Target/TargetData.h"
3031 #include "llvm/Target/TargetLowering.h"
1919 #include "llvm/Constants.h"
2020 #include "llvm/Module.h"
2121 #include "llvm/DerivedTypes.h"
22 #include "llvm/Analysis/DebugInfo.h"
2223 #include "llvm/CodeGen/JITCodeEmitter.h"
2324 #include "llvm/CodeGen/MachineFunction.h"
2425 #include "llvm/CodeGen/MachineConstantPool.h"
1515 #include "X86AsmPrinter.h"
1616 #include "X86MCAsmInfo.h"
1717 #include "X86COFFMachineModuleInfo.h"
18 #include "llvm/Analysis/DebugInfo.h"
1819 #include "llvm/CodeGen/MachineModuleInfoImpls.h"
1920 #include "llvm/MC/MCContext.h"
2021 #include "llvm/MC/MCExpr.h"