diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-02-03 22:49:58 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-02-03 22:49:58 +0000 |
commit | 4756f3b7c233c919df42ea652a7f071505375d51 (patch) | |
tree | 5ce7946b0ab83fa605b7ba0f492b487706b2145e /include/llvm/CodeGen/MachineFunction.h | |
parent | 341b405bc23e50658ff13dc959e0ed9946b9068b (diff) | |
download | external_llvm-4756f3b7c233c919df42ea652a7f071505375d51.zip external_llvm-4756f3b7c233c919df42ea652a7f071505375d51.tar.gz external_llvm-4756f3b7c233c919df42ea652a7f071505375d51.tar.bz2 |
Add getDebugLocTuple to retrieve the DebugLocTuple for a given DebugLoc object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFunction.h')
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 6abedb5..b1536a8 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -313,9 +313,12 @@ public: // /// getOrCreateDebugLocID - Look up the DebugLocTuple index with the given - /// source file, line, and column. If none currently exists, create add a new - /// new DebugLocTuple and insert it into the DebugIdMap. + /// source file, line, and column. If none currently exists, create a new + /// DebugLocTuple, and insert it into the DebugIdMap. unsigned getOrCreateDebugLocID(unsigned Src, unsigned Line, unsigned Col); + + /// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object. + const DebugLocTuple &getDebugLocTuple(DebugLoc DL); }; //===--------------------------------------------------------------------===// |