summaryrefslogtreecommitdiff
path: root/lib/codegen/include/code_gen/CG_outputRepr.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/codegen/include/code_gen/CG_outputRepr.h')
-rw-r--r--lib/codegen/include/code_gen/CG_outputRepr.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/codegen/include/code_gen/CG_outputRepr.h b/lib/codegen/include/code_gen/CG_outputRepr.h
index 0897007..d72ae6f 100644
--- a/lib/codegen/include/code_gen/CG_outputRepr.h
+++ b/lib/codegen/include/code_gen/CG_outputRepr.h
@@ -15,17 +15,19 @@
#ifndef _CG_OUTPUTREPR_H
#define _CG_OUTPUTREPR_H
+#include <string.h>
+
namespace omega {
class CG_outputRepr {
public:
+
CG_outputRepr() {}
- //! shallow delete
- virtual ~CG_outputRepr() { }
+ virtual ~CG_outputRepr() { /* shallow delete */ }
virtual CG_outputRepr *clone() const = 0;
- //! delete actual IR code wrapped inside
- virtual void clear() { }
+ virtual void clear() { /* delete actual IR code wrapped inside */ }
virtual void dump() const {}
+ virtual char *type() const = 0;
};
}