Index: src/assembler.h |
diff --git a/src/assembler.h b/src/assembler.h |
index d769b3aef72a17c115d8fa976266934ddcd69b3b..d3cd9bf873d9c34d2a520aa001853f1e4c12ee38 100644 |
--- a/src/assembler.h |
+++ b/src/assembler.h |
@@ -207,7 +207,7 @@ class Assembler { |
public: |
Assembler() {} |
- ~Assembler() {} |
+ virtual ~Assembler() {} |
// Allocate a chunk of bytes using the per-Assembler allocator. |
uintptr_t AllocateBytes(size_t bytes) { |
@@ -224,6 +224,8 @@ public: |
// Allocate data of type T using the per-Assembler allocator. |
template <typename T> T *Allocate() { return Allocator.Allocate<T>(); } |
+ virtual void BindCfgNodeLabel(SizeT NodeNumber) = 0; |
+ |
private: |
llvm::BumpPtrAllocator Allocator; |
}; |