aboutsummaryrefslogtreecommitdiffstats
path: root/parser/smallobject.h
diff options
context:
space:
mode:
authorModestas Vainius <modestas@vainius.eu>2010-09-02 10:51:13 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:09 -0300
commit396b71f4ddcbcdd7772bb9c02be8df642b7a1be2 (patch)
tree644a225998369b11f85288c2ea30d8a3028079ee /parser/smallobject.h
parent2d170a0b8b1519befc4cdad57a0a46ccf8d16e0a (diff)
Fixes various memory alignment issues which cause generator to crash on alignment-sensitive architectures.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'parser/smallobject.h')
-rw-r--r--parser/smallobject.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/parser/smallobject.h b/parser/smallobject.h
index 52cdc232f..a9eb4990b 100644
--- a/parser/smallobject.h
+++ b/parser/smallobject.h
@@ -35,6 +35,7 @@ class pool
public:
inline void *allocate(std::size_t __size);
+ inline void *allocate(std::size_t __size, std::size_t __stride);
};
inline void *pool::allocate(std::size_t __size)
@@ -42,6 +43,11 @@ inline void *pool::allocate(std::size_t __size)
return __alloc.allocate(__size);
}
+inline void *pool::allocate(std::size_t __size, std::size_t __stride)
+{
+ return __alloc.allocate(__size, __stride);
+}
+
#endif
// kate: space-indent on; indent-width 2; replace-tabs on;