mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Implement support to debug inlined functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86748 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1487,22 +1487,4 @@ bool getLocationInfo(const Value *V, std::string &DisplayName,
|
||||
|
||||
return DebugLoc::get(Id);
|
||||
}
|
||||
|
||||
/// isInlinedFnStart - Return true if FSI is starting an inlined function.
|
||||
bool isInlinedFnStart(DbgFuncStartInst &FSI, const Function *CurrentFn) {
|
||||
DISubprogram Subprogram(cast<MDNode>(FSI.getSubprogram()));
|
||||
if (Subprogram.describes(CurrentFn))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/// isInlinedFnEnd - Return true if REI is ending an inlined function.
|
||||
bool isInlinedFnEnd(DbgRegionEndInst &REI, const Function *CurrentFn) {
|
||||
DISubprogram Subprogram(cast<MDNode>(REI.getContext()));
|
||||
if (Subprogram.isNull() || Subprogram.describes(CurrentFn))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user