mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
Add a default debug location object to the Machine Function. It's used to emit a default debugging label at the beginning of a function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65091 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
14a2e1eda0
commit
5d0f68134e
@ -95,6 +95,10 @@ class MachineFunction : private Annotation {
|
|||||||
typedef ilist<MachineBasicBlock> BasicBlockListType;
|
typedef ilist<MachineBasicBlock> BasicBlockListType;
|
||||||
BasicBlockListType BasicBlocks;
|
BasicBlockListType BasicBlocks;
|
||||||
|
|
||||||
|
// Default debug location. Used to print out the debug label at the beginning
|
||||||
|
// of a function.
|
||||||
|
DebugLoc DefaultDebugLoc;
|
||||||
|
|
||||||
// Tracks debug locations.
|
// Tracks debug locations.
|
||||||
DebugLocTracker DebugLocInfo;
|
DebugLocTracker DebugLocInfo;
|
||||||
|
|
||||||
@ -319,6 +323,14 @@ public:
|
|||||||
|
|
||||||
/// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object.
|
/// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object.
|
||||||
DebugLocTuple getDebugLocTuple(DebugLoc DL) const;
|
DebugLocTuple getDebugLocTuple(DebugLoc DL) const;
|
||||||
|
|
||||||
|
/// getDefaultDebugLoc - Get the default debug location for the machine
|
||||||
|
/// function.
|
||||||
|
DebugLoc getDefaultDebugLoc() const { return DefaultDebugLoc; }
|
||||||
|
|
||||||
|
/// setDefaultDebugLoc - Get the default debug location for the machine
|
||||||
|
/// function.
|
||||||
|
void setDefaultDebugLoc(DebugLoc DL) { DefaultDebugLoc = DL; }
|
||||||
};
|
};
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user