summaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-09-20 16:27:05 +0000
committerBill Wendling <isanbard@gmail.com>2012-09-20 16:27:05 +0000
commitf2e89e00b4c4ecfa5a092a479ccab1ed8677eede (patch)
treeda39c70cb12e9a479178eaa5b98549aef85082db /lib/Target/CppBackend
parent342cea9a0a6990b03b82b95174fc5ac0ec6f61e1 (diff)
downloadllvm-f2e89e00b4c4ecfa5a092a479ccab1ed8677eede.tar.gz
llvm-f2e89e00b4c4ecfa5a092a479ccab1ed8677eede.tar.bz2
llvm-f2e89e00b4c4ecfa5a092a479ccab1ed8677eede.tar.xz
Make the 'get*AlignmentFromAttr' functions into member functions within the Attributes class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend')
-rw-r--r--lib/Target/CppBackend/CPPBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp
index 4ddcd38aca..444da2bb21 100644
--- a/lib/Target/CppBackend/CPPBackend.cpp
+++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -508,7 +508,7 @@ void CppWriter::printAttributes(const AttrListPtr &PAL,
#undef HANDLE_ATTR
if (attrs & Attribute::StackAlignment)
Out << " | Attribute::constructStackAlignmentFromInt("
- << Attribute::getStackAlignmentFromAttrs(attrs)
+ << attrs.getStackAlignment()
<< ")";
attrs &= ~Attribute::StackAlignment;
assert(attrs == 0 && "Unhandled attribute!");