forked from OSchip/llvm-project
Avoid including DebugInfo.h in AsmPrinter.h
llvm-svn: 93864
This commit is contained in:
parent
00fa4b67e6
commit
1083b5fc3f
|
@ -17,7 +17,6 @@
|
|||
#define LLVM_CODEGEN_ASMPRINTER_H
|
||||
|
||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||
#include "llvm/Analysis/DebugInfo.h"
|
||||
#include "llvm/Support/DebugLoc.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
@ -49,6 +48,7 @@ namespace llvm {
|
|||
class MCSection;
|
||||
class MCStreamer;
|
||||
class MCSymbol;
|
||||
class MDNode;
|
||||
class DwarfWriter;
|
||||
class Mangler;
|
||||
class MCAsmInfo;
|
||||
|
@ -153,7 +153,7 @@ namespace llvm {
|
|||
mutable unsigned Counter;
|
||||
|
||||
// Private state for processDebugLoc()
|
||||
mutable DILocation PrevDLT;
|
||||
mutable const MDNode *PrevDLT;
|
||||
|
||||
protected:
|
||||
explicit AsmPrinter(formatted_raw_ostream &o, TargetMachine &TM,
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
namespace llvm {
|
||||
|
||||
class DILocation;
|
||||
class Value;
|
||||
class Function;
|
||||
class MachineRegisterInfo;
|
||||
|
|
|
@ -1512,14 +1512,14 @@ void AsmPrinter::processDebugLoc(const MachineInstr *MI,
|
|||
return;
|
||||
|
||||
if (BeforePrintingInsn) {
|
||||
if (CurDLT.getNode() != PrevDLT.getNode()) {
|
||||
if (CurDLT.getNode() != PrevDLT) {
|
||||
unsigned L = DW->RecordSourceLine(CurDLT.getLineNumber(),
|
||||
CurDLT.getColumnNumber(),
|
||||
CurDLT.getScope().getNode());
|
||||
printLabel(L);
|
||||
O << '\n';
|
||||
DW->BeginScope(MI, L);
|
||||
PrevDLT = CurDLT;
|
||||
PrevDLT = CurDLT.getNode();
|
||||
}
|
||||
} else {
|
||||
// After printing instruction
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "llvm/CodeGen/MachineJumpTableInfo.h"
|
||||
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/Analysis/DebugInfo.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/Target/TargetLowering.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "llvm/Constants.h"
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/Analysis/DebugInfo.h"
|
||||
#include "llvm/CodeGen/JITCodeEmitter.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
#include "llvm/CodeGen/MachineConstantPool.h"
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "X86AsmPrinter.h"
|
||||
#include "X86MCAsmInfo.h"
|
||||
#include "X86COFFMachineModuleInfo.h"
|
||||
#include "llvm/Analysis/DebugInfo.h"
|
||||
#include "llvm/CodeGen/MachineModuleInfoImpls.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCExpr.h"
|
||||
|
|
Loading…
Reference in New Issue