mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Replace DebugLocTuple with DILocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93630 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -368,12 +368,12 @@ namespace {
|
||||
// the stub is unused.
|
||||
DenseMap<void *, SmallPtrSet<const Function*, 1> > StubFnRefs;
|
||||
|
||||
DebugLocTuple PrevDLT;
|
||||
DILocation PrevDLT;
|
||||
|
||||
public:
|
||||
JITEmitter(JIT &jit, JITMemoryManager *JMM, TargetMachine &TM)
|
||||
: SizeEstimate(0), Resolver(jit, *this), MMI(0), CurFn(0),
|
||||
EmittedFunctions(this) {
|
||||
EmittedFunctions(this), PrevDLT(NULL) {
|
||||
MemMgr = JMM ? JMM : JITMemoryManager::CreateDefaultMemManager();
|
||||
if (jit.getJITInfo().needsGOT()) {
|
||||
MemMgr->AllocateGOT();
|
||||
@@ -806,10 +806,11 @@ void JITEmitter::AddStubToCurrentFunction(void *StubAddr) {
|
||||
|
||||
void JITEmitter::processDebugLoc(DebugLoc DL, bool BeforePrintingInsn) {
|
||||
if (!DL.isUnknown()) {
|
||||
DebugLocTuple CurDLT = EmissionDetails.MF->getDebugLocTuple(DL);
|
||||
DILocation CurDLT = EmissionDetails.MF->getDILocation(DL);
|
||||
|
||||
if (BeforePrintingInsn) {
|
||||
if (CurDLT.Scope != 0 && PrevDLT != CurDLT) {
|
||||
if (CurDLT.getScope().getNode() != 0
|
||||
&& PrevDLT.getNode() != CurDLT.getNode()) {
|
||||
JITEvent_EmittedFunctionDetails::LineStart NextLine;
|
||||
NextLine.Address = getCurrentPCValue();
|
||||
NextLine.Loc = DL;
|
||||
|
Reference in New Issue
Block a user