diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-01-26 23:47:30 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-01-26 23:47:30 +0000 |
commit | a40c3dd5c4a08b59dc9b0634f1ba1355b038b59a (patch) | |
tree | c51e825ce7e4351b6a0c8e22610ced618db3359d /include/llvm/CodeGen/DebugLoc.h | |
parent | fd8c4d9561cb6be121b557f2afde92f9632abca3 (diff) | |
download | external_llvm-a40c3dd5c4a08b59dc9b0634f1ba1355b038b59a.tar.gz external_llvm-a40c3dd5c4a08b59dc9b0634f1ba1355b038b59a.tar.bz2 external_llvm-a40c3dd5c4a08b59dc9b0634f1ba1355b038b59a.zip |
No need to keep size of DebugLocations vector separately.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/DebugLoc.h')
-rw-r--r-- | include/llvm/CodeGen/DebugLoc.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/DebugLoc.h b/include/llvm/CodeGen/DebugLoc.h index b6097afe30..baf6583a8b 100644 --- a/include/llvm/CodeGen/DebugLoc.h +++ b/include/llvm/CodeGen/DebugLoc.h @@ -69,9 +69,6 @@ namespace llvm { /// DebugLocTracker - This class tracks debug location information. /// struct DebugLocTracker { - // NumDebugLocations - Size of the DebugLocations vector. - unsigned NumDebugLocations; - // DebugLocations - A vector of unique DebugLocTuple's. // std::vector<DebugLocTuple> DebugLocations; @@ -80,7 +77,7 @@ namespace llvm { // DebugLocations vector. DebugIdMapType DebugIdMap; - DebugLocTracker() : NumDebugLocations(0) {} + DebugLocTracker() {} ~DebugLocTracker() { DebugLocations.clear(); |