summaryrefslogtreecommitdiffstats
path: root/parse.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 /parse.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 'parse.h')
-rw-r--r--parse.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/parse.h b/parse.h
index 4cc4f7b2..cae49b65 100644
--- a/parse.h
+++ b/parse.h
@@ -23,10 +23,9 @@ struct stapfile;
struct source_loc
{
- std::string file;
+ stapfile* file;
unsigned line;
unsigned column;
- stapfile* stap_file;
};
std::ostream& operator << (std::ostream& o, const source_loc& loc);
@@ -75,7 +74,6 @@ class lexer
public:
token* scan (bool wildcard=false);
lexer (std::istream&, const std::string&, systemtap_session&);
- std::string get_input_contents ();
void set_current_file (stapfile* f);
private: