summaryrefslogtreecommitdiffstats
path: root/staptree.h
diff options
context:
space:
mode:
Diffstat (limited to 'staptree.h')
-rw-r--r--staptree.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/staptree.h b/staptree.h
index b509ad7a..5c98507a 100644
--- a/staptree.h
+++ b/staptree.h
@@ -288,6 +288,14 @@ struct print_format: public expression
unsigned precision;
conversion_type type;
std::string literal_string;
+ bool is_empty() const
+ {
+ return flags == 0
+ && width == 0
+ && precision == 0
+ && type == conv_unspecified
+ && literal_string.empty();
+ }
void clear()
{
flags = 0;
@@ -522,7 +530,6 @@ struct stapfile
std::vector<functiondecl*> functions;
std::vector<vardecl*> globals;
std::vector<embeddedcode*> embeds;
- std::map<std::string, statistic_decl> stat_decls;
bool privileged;
stapfile (): privileged (false) {}
void print (std::ostream& o) const;