[dragonegg] r182196 - Use get_object_alignment rather than get_object_or_type_alignment for gcc-4.8.
Duncan Sands
baldrick at free.fr
Sat May 18 09:38:20 PDT 2013
Author: baldrick
Date: Sat May 18 11:38:20 2013
New Revision: 182196
URL: http://llvm.org/viewvc/llvm-project?rev=182196&view=rev
Log:
Use get_object_alignment rather than get_object_or_type_alignment for gcc-4.8.
Modified:
dragonegg/trunk/src/Convert.cpp
Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=182196&r1=182195&r2=182196&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Sat May 18 11:38:20 2013
@@ -6352,8 +6352,10 @@ bool TreeToLLVM::EmitBuiltinCall(gimple
#elif(GCC_MINOR < 7)
std::max(get_object_alignment(exp, BIGGEST_ALIGNMENT),
TYPE_ALIGN(TREE_TYPE(exp)));
-#else
+#elif (GCC_MINOR < 8)
get_object_or_type_alignment(exp);
+#else
+ get_object_alignment(exp);
#endif
bool Volatile = TREE_THIS_VOLATILE(exp);
@@ -6474,8 +6476,10 @@ bool TreeToLLVM::EmitBuiltinCall(gimple
#elif(GCC_MINOR < 7)
std::max(get_object_alignment(exp, BIGGEST_ALIGNMENT),
TYPE_ALIGN(TREE_TYPE(exp)));
-#else
+#elif (GCC_MINOR < 8)
get_object_or_type_alignment(exp);
+#else
+ get_object_alignment(exp);
#endif
bool Volatile = TREE_THIS_VOLATILE(exp);
More information about the llvm-commits
mailing list