Index: src/signature.h |
diff --git a/src/signature.h b/src/signature.h |
index 076d17a7e2ddb7c16e87780c41d6157761ae1567..3fa5f8290f285586bbfda1fd391e25bcadb8d52e 100644 |
--- a/src/signature.h |
+++ b/src/signature.h |
@@ -14,7 +14,7 @@ namespace internal { |
template <typename T> |
class Signature : public ZoneObject { |
public: |
- Signature(size_t return_count, size_t parameter_count, T* reps) |
+ Signature(size_t return_count, size_t parameter_count, const T* reps) |
: return_count_(return_count), |
parameter_count_(parameter_count), |
reps_(reps) {} |
@@ -32,6 +32,8 @@ class Signature : public ZoneObject { |
return reps_[index]; |
} |
+ const T* raw_data() const { return reps_; } |
+ |
// For incrementally building signatures. |
class Builder { |
public: |
@@ -71,7 +73,7 @@ class Signature : public ZoneObject { |
protected: |
size_t return_count_; |
size_t parameter_count_; |
- T* reps_; |
+ const T* reps_; |
}; |
} // namespace internal |