diff options
author | Josh Stone <jistone@redhat.com> | 2009-07-09 12:46:57 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-07-09 16:17:14 -0700 |
commit | 2203b03262e340b25fc26996cc2786c1c02041e3 (patch) | |
tree | ad6f6a37153f502d7fcdcee0842c8ec5ac460c83 /parse.h | |
parent | 66c7d4c1a4147bc05abd1e69f41ec9d59685c433 (diff) | |
download | systemtap-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.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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: |