[cfe-commits] r165888 - /cfe/trunk/lib/CodeGen/TargetInfo.cpp
Bill Wendling
isanbard at gmail.com
Sat Oct 13 20:28:14 PDT 2012
Author: void
Date: Sat Oct 13 22:28:14 2012
New Revision: 165888
URL: http://llvm.org/viewvc/llvm-project?rev=165888&view=rev
Log:
Use the Builder to create the stack alignment attribute.
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=165888&r1=165887&r2=165888&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Sat Oct 13 22:28:14 2012
@@ -968,8 +968,9 @@
llvm::Function *Fn = cast<llvm::Function>(GV);
// Now add the 'alignstack' attribute with a value of 16.
- Fn->addAttribute(~0U,
- llvm::Attributes::constructStackAlignmentFromInt(16));
+ llvm::Attributes::Builder B;
+ B.addStackAlignmentAttr(16);
+ Fn->addAttribute(~0U, llvm::Attributes::get(B));
}
}
}
More information about the cfe-commits
mailing list