[llvm-commits] [llvm] r62039 - /llvm/trunk/lib/VMCore/Attributes.cpp
Nick Lewycky
nicholas at mxc.ca
Sun Jan 11 09:02:07 PST 2009
Author: nicholas
Date: Sun Jan 11 11:02:06 2009
New Revision: 62039
URL: http://llvm.org/viewvc/llvm-project?rev=62039&view=rev
Log:
Use the spiffy new getAlignmentFromAttrs function.
Modified:
llvm/trunk/lib/VMCore/Attributes.cpp
Modified: llvm/trunk/lib/VMCore/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Attributes.cpp?rev=62039&r1=62038&r2=62039&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Attributes.cpp (original)
+++ llvm/trunk/lib/VMCore/Attributes.cpp Sun Jan 11 11:02:06 2009
@@ -61,7 +61,7 @@
Result += "sspreq ";
if (Attrs & Attribute::Alignment) {
Result += "align ";
- Result += utostr(1ull << (((Attrs & Attribute::Alignment)>>16) - 1));
+ Result += utostr(Attribute::getAlignmentFromAttrs(Attrs));
Result += " ";
}
// Trim the trailing space.
More information about the llvm-commits
mailing list