diff options
author | Argiris Kirtzidis <akyrtzi@gmail.com> | 2009-04-30 23:22:31 +0000 |
---|---|---|
committer | Argiris Kirtzidis <akyrtzi@gmail.com> | 2009-04-30 23:22:31 +0000 |
commit | 5b02f4c65921e7f0f0cc997aa6f0b614259e4aea (patch) | |
tree | c120bcc5dae1ed6c28cdf9b86b0dac5b9c71a65e /include/llvm/CodeGen/MachineFunction.h | |
parent | b9e97bc4237a7e307f87f3937ec1166c2134fe2a (diff) | |
download | external_llvm-5b02f4c65921e7f0f0cc997aa6f0b614259e4aea.tar.gz external_llvm-5b02f4c65921e7f0f0cc997aa6f0b614259e4aea.tar.bz2 external_llvm-5b02f4c65921e7f0f0cc997aa6f0b614259e4aea.zip |
Make DebugLoc independent of DwarfWriter.
-Replace DebugLocTuple's Source ID with CompileUnit's GlobalVariable*
-Remove DwarfWriter::getOrCreateSourceID
-Make necessary changes for the above (fix callsites, etc.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFunction.h')
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index f427c72e33..1c9bc61521 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -332,7 +332,8 @@ public: /// getOrCreateDebugLocID - Look up the DebugLocTuple index with the given /// 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); + unsigned getOrCreateDebugLocID(GlobalVariable *CompileUnit, + unsigned Line, unsigned Col); /// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object. DebugLocTuple getDebugLocTuple(DebugLoc DL) const; |