mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Privatize some more debug-related static data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2d7f78eb09
commit
a8dbf36f3f
@ -115,6 +115,9 @@ namespace llvm {
|
|||||||
mutable const Function *LastFn;
|
mutable const Function *LastFn;
|
||||||
mutable unsigned Counter;
|
mutable unsigned Counter;
|
||||||
|
|
||||||
|
// Private state for processDebugLock()
|
||||||
|
mutable DebugLocTuple PrevDLT;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
explicit AsmPrinter(raw_ostream &o, TargetMachine &TM,
|
explicit AsmPrinter(raw_ostream &o, TargetMachine &TM,
|
||||||
const TargetAsmInfo *T, CodeGenOpt::Level OL, bool V);
|
const TargetAsmInfo *T, CodeGenOpt::Level OL, bool V);
|
||||||
|
@ -45,7 +45,8 @@ AsmPrinter::AsmPrinter(raw_ostream &o, TargetMachine &tm,
|
|||||||
const TargetAsmInfo *T, CodeGenOpt::Level OL, bool VDef)
|
const TargetAsmInfo *T, CodeGenOpt::Level OL, bool VDef)
|
||||||
: MachineFunctionPass(&ID), FunctionNumber(0), OptLevel(OL), O(o),
|
: MachineFunctionPass(&ID), FunctionNumber(0), OptLevel(OL), O(o),
|
||||||
TM(tm), TAI(T), TRI(tm.getRegisterInfo()),
|
TM(tm), TAI(T), TRI(tm.getRegisterInfo()),
|
||||||
IsInTextSection(false), LastMI(0), LastFn(0), Counter(~0U) {
|
IsInTextSection(false), LastMI(0), LastFn(0), Counter(~0U),
|
||||||
|
PrevDLT(0, ~0U, ~0U) {
|
||||||
DW = 0; MMI = 0;
|
DW = 0; MMI = 0;
|
||||||
switch (AsmVerbose) {
|
switch (AsmVerbose) {
|
||||||
case cl::BOU_UNSET: VerboseAsm = VDef; break;
|
case cl::BOU_UNSET: VerboseAsm = VDef; break;
|
||||||
@ -1338,7 +1339,6 @@ void AsmPrinter::PrintSpecial(const MachineInstr *MI, const char *Code) const {
|
|||||||
void AsmPrinter::processDebugLoc(DebugLoc DL) {
|
void AsmPrinter::processDebugLoc(DebugLoc DL) {
|
||||||
if (TAI->doesSupportDebugInformation() && DW->ShouldEmitDwarfDebug()) {
|
if (TAI->doesSupportDebugInformation() && DW->ShouldEmitDwarfDebug()) {
|
||||||
if (!DL.isUnknown()) {
|
if (!DL.isUnknown()) {
|
||||||
static DebugLocTuple PrevDLT(0, ~0U, ~0U);
|
|
||||||
DebugLocTuple CurDLT = MF->getDebugLocTuple(DL);
|
DebugLocTuple CurDLT = MF->getDebugLocTuple(DL);
|
||||||
|
|
||||||
if (CurDLT.CompileUnit != 0 && PrevDLT != CurDLT)
|
if (CurDLT.CompileUnit != 0 && PrevDLT != CurDLT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user