Fix ARM build (GCC 3 'all member functions in class are private' warning.)

TBR=ager@chromium.org

Review URL: http://codereview.chromium.org/1084010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4195 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ebf9e6e8
...@@ -110,6 +110,10 @@ class TickSampleEventRecord { ...@@ -110,6 +110,10 @@ class TickSampleEventRecord {
TickSample sample; TickSample sample;
unsigned order; unsigned order;
#if defined(__GNUC__) && (__GNUC__ < 4)
// Added to avoid 'all member functions in class are private' error.
INLINE(unsigned get_order() const) { return order; }
#endif
private: private:
// Disable instantiation. // Disable instantiation.
TickSampleEventRecord(); TickSampleEventRecord();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment