From f7ba38332baf2a85a579851d89a22b8c15322f7e Mon Sep 17 00:00:00 2001 From: "mikhail.naganov@gmail.com" Date: Fri, 19 Mar 2010 13:07:43 +0000 Subject: [PATCH] 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 --- src/cpu-profiler.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h index 7c838fd251..7a3711ddf5 100644 --- a/src/cpu-profiler.h +++ b/src/cpu-profiler.h @@ -110,6 +110,10 @@ class TickSampleEventRecord { TickSample sample; 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: // Disable instantiation. TickSampleEventRecord();