[llvm-commits] [llvm-gcc-4.2] r83333 - /llvm-gcc-4.2/tags/Apple/llvmgcc42-2311/gcc/llvm-convert.cpp
Stuart Hastings
stuart at apple.com
Mon Oct 5 15:26:25 PDT 2009
Author: stuart
Date: Mon Oct 5 17:26:25 2009
New Revision: 83333
URL: http://llvm.org/viewvc/llvm-project?rev=83333&view=rev
Log:
Merge Evan's fix for <rdar://problem/7268289> into 2311.
Modified:
llvm-gcc-4.2/tags/Apple/llvmgcc42-2311/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/tags/Apple/llvmgcc42-2311/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/tags/Apple/llvmgcc42-2311/gcc/llvm-convert.cpp?rev=83333&r1=83332&r2=83333&view=diff
==============================================================================
--- llvm-gcc-4.2/tags/Apple/llvmgcc42-2311/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/tags/Apple/llvmgcc42-2311/gcc/llvm-convert.cpp Mon Oct 5 17:26:25 2009
@@ -503,6 +503,10 @@
// Handle visibility style
handleVisibility(FnDecl, Fn);
+ // Handle attribute "aligned".
+ if (DECL_ALIGN (FnDecl) != 8)
+ Fn->setAlignment(DECL_ALIGN (FnDecl) / 8);
+
// Handle functions in specified sections.
if (DECL_SECTION_NAME(FnDecl))
Fn->setSection(TREE_STRING_POINTER(DECL_SECTION_NAME(FnDecl)));
More information about the llvm-commits
mailing list