]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/Comment.hxx
Reoganize Function/BasicBlock creation
[frida/frida.git] / src / core / Comment.hxx
diff --git a/src/core/Comment.hxx b/src/core/Comment.hxx
new file mode 100644 (file)
index 0000000..e151f5a
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef INCLUDE__Comment_hxx
+#define INCLUDE__Comment_hxx
+
+#include <string>
+
+class Function;
+
+class Comment {
+public:
+       bool isLocal() const {return location == NULL;}
+
+private:
+       Comment(uint64_t address);
+       Comment(uint64_t address, Function* location);
+
+       uint64_t address;
+       Function* location;
+       std::string text;
+};
+
+#endif /* INCLUDE__Comment_hxx */