mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-24 08:18:33 +00:00
Add debug info utility routines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74680 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -33,6 +33,11 @@ namespace llvm {
|
||||
class Value;
|
||||
struct DbgStopPointInst;
|
||||
struct DbgDeclareInst;
|
||||
struct DbgFuncStartInst;
|
||||
struct DbgRegionStartInst;
|
||||
struct DbgRegionEndInst;
|
||||
class DebugLoc;
|
||||
class DebugLocTracker;
|
||||
class Instruction;
|
||||
|
||||
class DIDescriptor {
|
||||
@@ -548,6 +553,49 @@ namespace llvm {
|
||||
SmallVector<GlobalVariable *, 4> &GlobalVars,
|
||||
SmallVector<GlobalVariable *, 4> &Subprograms);
|
||||
|
||||
/// isValidDebugInfoIntrinsic - Return true if SPI is a valid debug
|
||||
/// info intrisic.
|
||||
bool isValidDebugInfoIntrinsic(DbgStopPointInst &SPI,
|
||||
CodeGenOpt::Level OptLev);
|
||||
|
||||
/// isValidDebugInfoIntrinsic - Return true if FSI is a valid debug
|
||||
/// info intrisic.
|
||||
bool isValidDebugInfoIntrinsic(DbgFuncStartInst &FSI,
|
||||
CodeGenOpt::Level OptLev);
|
||||
|
||||
/// isValidDebugInfoIntrinsic - Return true if RSI is a valid debug
|
||||
/// info intrisic.
|
||||
bool isValidDebugInfoIntrinsic(DbgRegionStartInst &RSI,
|
||||
CodeGenOpt::Level OptLev);
|
||||
|
||||
/// isValidDebugInfoIntrinsic - Return true if REI is a valid debug
|
||||
/// info intrisic.
|
||||
bool isValidDebugInfoIntrinsic(DbgRegionEndInst &REI,
|
||||
CodeGenOpt::Level OptLev);
|
||||
|
||||
/// isValidDebugInfoIntrinsic - Return true if DI is a valid debug
|
||||
/// info intrisic.
|
||||
bool isValidDebugInfoIntrinsic(DbgDeclareInst &DI,
|
||||
CodeGenOpt::Level OptLev);
|
||||
|
||||
/// ExtractDebugLocation - Extract debug location information
|
||||
/// from llvm.dbg.stoppoint intrinsic.
|
||||
DebugLoc ExtractDebugLocation(DbgStopPointInst &SPI,
|
||||
CodeGenOpt::Level OptLev,
|
||||
DebugLocTracker &DebugLocInfo);
|
||||
|
||||
/// ExtractDebugLocation - Extract debug location information
|
||||
/// from llvm.dbg.func_start intrinsic.
|
||||
DebugLoc ExtractDebugLocation(DbgFuncStartInst &FSI,
|
||||
CodeGenOpt::Level OptLev,
|
||||
DebugLocTracker &DebugLocInfo);
|
||||
|
||||
/// isInlinedFnStart - Return true if FSI is starting an inlined function.
|
||||
bool isInlinedFnStart(DbgFuncStartInst &FSI, const Function *CurrentFn);
|
||||
|
||||
/// isInlinedFnEnd - Return true if REI is ending an inlined function.
|
||||
bool isInlinedFnEnd(DbgRegionEndInst &REI, const Function *CurrentFn);
|
||||
|
||||
} // end namespace llvm
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user