summaryrefslogtreecommitdiffstats
path: root/coveragedb.h
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-07-09 12:46:57 -0700
committerJosh Stone <jistone@redhat.com>2009-07-09 16:17:14 -0700
commit2203b03262e340b25fc26996cc2786c1c02041e3 (patch)
treead6f6a37153f502d7fcdcee0842c8ec5ac460c83 /coveragedb.h
parent66c7d4c1a4147bc05abd1e69f41ec9d59685c433 (diff)
downloadsystemtap-steved-2203b03262e340b25fc26996cc2786c1c02041e3.tar.gz
systemtap-steved-2203b03262e340b25fc26996cc2786c1c02041e3.tar.xz
systemtap-steved-2203b03262e340b25fc26996cc2786c1c02041e3.zip
Remove the filename copy from token->location
The location already has a pointer to a stapfile with the filename, so there's no need to keep an extra copy.
Diffstat (limited to 'coveragedb.h')
-rw-r--r--coveragedb.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/coveragedb.h b/coveragedb.h
index 3675e3b4..f0f071c4 100644
--- a/coveragedb.h
+++ b/coveragedb.h
@@ -10,6 +10,7 @@
#define COVERAGEDB_H
#include "session.h"
+#include "staptree.h"
#include <string>
@@ -62,12 +63,12 @@ public:
int compiled;
int executed;
- coverage_element() { line = 0; col = 0;
- compiled = 0; executed = 0; }
+ coverage_element():
+ line(0), col(0), compiled(0), executed(0) {}
- coverage_element(source_loc &place) {
- file = place.file; line = place.line; col = place.column;
- compiled = 0; executed = 0; }
+ coverage_element(source_loc &place):
+ file(place.file->name), line(place.line), col(place.column),
+ compiled(0), executed(0) {}
};