projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aacec1
)
Use the spiffy new getAlignmentFromAttrs function.
author
Nick Lewycky
<nicholas@mxc.ca>
Sun, 11 Jan 2009 17:02:06 +0000
(17:02 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Sun, 11 Jan 2009 17:02:06 +0000
(17:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62039
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Attributes.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Attributes.cpp
b/lib/VMCore/Attributes.cpp
index dd47814d97ad971cecd4be5c751aa85870a93aaf..0f3efa7b9ddef7b4534a7e2ca9be962ad5e06441 100644
(file)
--- a/
lib/VMCore/Attributes.cpp
+++ b/
lib/VMCore/Attributes.cpp
@@
-61,7
+61,7
@@
std::string Attribute::getAsString(Attributes Attrs) {
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.