diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-02-20 00:42:52 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-02-20 00:42:52 +0000 |
commit | fc1042f9bbc271dd56c4d78362c11bb984f1d1bc (patch) | |
tree | 3138e85c52797c2fc5a123fcff6f2d81880dfc3d | |
parent | 464ceb4ec8524517caa109397a59adcf4262947c (diff) | |
download | bcm5719-llvm-fc1042f9bbc271dd56c4d78362c11bb984f1d1bc.tar.gz bcm5719-llvm-fc1042f9bbc271dd56c4d78362c11bb984f1d1bc.zip |
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.
llvm-svn: 65091
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineFunction.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h index a039e23399b..689e4357b1d 100644 --- a/llvm/include/llvm/CodeGen/MachineFunction.h +++ b/llvm/include/llvm/CodeGen/MachineFunction.h @@ -95,6 +95,10 @@ class MachineFunction : private Annotation { typedef ilist<MachineBasicBlock> BasicBlockListType; BasicBlockListType BasicBlocks; + // Default debug location. Used to print out the debug label at the beginning + // of a function. + DebugLoc DefaultDebugLoc; + // Tracks debug locations. DebugLocTracker DebugLocInfo; @@ -319,6 +323,14 @@ public: /// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object. 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; } }; //===--------------------------------------------------------------------===// |