mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Avoid including DebugInfo.h in AsmPrinter.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -17,7 +17,6 @@
|
|||||||
#define LLVM_CODEGEN_ASMPRINTER_H
|
#define LLVM_CODEGEN_ASMPRINTER_H
|
||||||
|
|
||||||
#include "llvm/CodeGen/MachineFunctionPass.h"
|
#include "llvm/CodeGen/MachineFunctionPass.h"
|
||||||
#include "llvm/Analysis/DebugInfo.h"
|
|
||||||
#include "llvm/Support/DebugLoc.h"
|
#include "llvm/Support/DebugLoc.h"
|
||||||
#include "llvm/Target/TargetMachine.h"
|
#include "llvm/Target/TargetMachine.h"
|
||||||
#include "llvm/ADT/DenseMap.h"
|
#include "llvm/ADT/DenseMap.h"
|
||||||
@ -49,6 +48,7 @@ namespace llvm {
|
|||||||
class MCSection;
|
class MCSection;
|
||||||
class MCStreamer;
|
class MCStreamer;
|
||||||
class MCSymbol;
|
class MCSymbol;
|
||||||
|
class MDNode;
|
||||||
class DwarfWriter;
|
class DwarfWriter;
|
||||||
class Mangler;
|
class Mangler;
|
||||||
class MCAsmInfo;
|
class MCAsmInfo;
|
||||||
@ -153,7 +153,7 @@ namespace llvm {
|
|||||||
mutable unsigned Counter;
|
mutable unsigned Counter;
|
||||||
|
|
||||||
// Private state for processDebugLoc()
|
// Private state for processDebugLoc()
|
||||||
mutable DILocation PrevDLT;
|
mutable const MDNode *PrevDLT;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
explicit AsmPrinter(formatted_raw_ostream &o, TargetMachine &TM,
|
explicit AsmPrinter(formatted_raw_ostream &o, TargetMachine &TM,
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
|
class DILocation;
|
||||||
class Value;
|
class Value;
|
||||||
class Function;
|
class Function;
|
||||||
class MachineRegisterInfo;
|
class MachineRegisterInfo;
|
||||||
|
@ -1512,14 +1512,14 @@ void AsmPrinter::processDebugLoc(const MachineInstr *MI,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (BeforePrintingInsn) {
|
if (BeforePrintingInsn) {
|
||||||
if (CurDLT.getNode() != PrevDLT.getNode()) {
|
if (CurDLT.getNode() != PrevDLT) {
|
||||||
unsigned L = DW->RecordSourceLine(CurDLT.getLineNumber(),
|
unsigned L = DW->RecordSourceLine(CurDLT.getLineNumber(),
|
||||||
CurDLT.getColumnNumber(),
|
CurDLT.getColumnNumber(),
|
||||||
CurDLT.getScope().getNode());
|
CurDLT.getScope().getNode());
|
||||||
printLabel(L);
|
printLabel(L);
|
||||||
O << '\n';
|
O << '\n';
|
||||||
DW->BeginScope(MI, L);
|
DW->BeginScope(MI, L);
|
||||||
PrevDLT = CurDLT;
|
PrevDLT = CurDLT.getNode();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// After printing instruction
|
// After printing instruction
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#include "llvm/CodeGen/MachineJumpTableInfo.h"
|
#include "llvm/CodeGen/MachineJumpTableInfo.h"
|
||||||
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
#include "llvm/CodeGen/MachineRegisterInfo.h"
|
||||||
#include "llvm/CodeGen/Passes.h"
|
#include "llvm/CodeGen/Passes.h"
|
||||||
|
#include "llvm/Analysis/DebugInfo.h"
|
||||||
#include "llvm/Support/Debug.h"
|
#include "llvm/Support/Debug.h"
|
||||||
#include "llvm/Target/TargetData.h"
|
#include "llvm/Target/TargetData.h"
|
||||||
#include "llvm/Target/TargetLowering.h"
|
#include "llvm/Target/TargetLowering.h"
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "llvm/Constants.h"
|
#include "llvm/Constants.h"
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
|
#include "llvm/Analysis/DebugInfo.h"
|
||||||
#include "llvm/CodeGen/JITCodeEmitter.h"
|
#include "llvm/CodeGen/JITCodeEmitter.h"
|
||||||
#include "llvm/CodeGen/MachineFunction.h"
|
#include "llvm/CodeGen/MachineFunction.h"
|
||||||
#include "llvm/CodeGen/MachineConstantPool.h"
|
#include "llvm/CodeGen/MachineConstantPool.h"
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#include "X86AsmPrinter.h"
|
#include "X86AsmPrinter.h"
|
||||||
#include "X86MCAsmInfo.h"
|
#include "X86MCAsmInfo.h"
|
||||||
#include "X86COFFMachineModuleInfo.h"
|
#include "X86COFFMachineModuleInfo.h"
|
||||||
|
#include "llvm/Analysis/DebugInfo.h"
|
||||||
#include "llvm/CodeGen/MachineModuleInfoImpls.h"
|
#include "llvm/CodeGen/MachineModuleInfoImpls.h"
|
||||||
#include "llvm/MC/MCContext.h"
|
#include "llvm/MC/MCContext.h"
|
||||||
#include "llvm/MC/MCExpr.h"
|
#include "llvm/MC/MCExpr.h"
|
||||||
|
Reference in New Issue
Block a user