backend: Use alignof keyword when supported
authorFeng, Boqun <boqun.feng@intel.com>
Wed, 10 Apr 2013 06:29:33 +0000 (14:29 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 10 Apr 2013 11:54:14 +0000 (19:54 +0800)
commit89e4af7c0bcd7ce4cd10b0f6ab558532bb49df55
tree7026c81730bcd533dffbd2786b001f6fb9778025
parentde0ded35a6582dc37e97e09ec6710ad5e90ab031
backend: Use alignof keyword when supported

the keyword alignof of C++11 is supported after gcc 4.8, other than use
old template way to calculate the align of a class, the keyword is used.

Signed-off-by: Feng, Boqun <boqun.feng@intel.com>
Reviewed-by: Zhigang, Gong <zhigang.gong@linux.intel.com>
backend/src/ir/instruction.cpp
backend/src/sys/alloc.hpp
backend/src/sys/platform.hpp