aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-09-21 16:07:49 +0000
committerBill Wendling <isanbard@gmail.com>2012-09-21 16:07:49 +0000
commitdb9eeb88d8e63a28f0b7d623011ec286a84f68a3 (patch)
treef4843bf1fe9d2f79c7b083005114d31b1b01ed51
parent1cc9a80f8df979d5ff26739ebf3c134c4e6a4ed0 (diff)
Update for encapsulating the "construct*AlignmentFromInt" methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164374 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/CGCall.cpp2
-rw-r--r--lib/CodeGen/TargetInfo.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index 95bee4bd5a..bdc0d855e0 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -1043,7 +1043,7 @@ void CodeGenModule::ConstructAttributeList(const CGFunctionInfo &FI,
Attrs |= llvm::Attribute::ByVal;
Attrs |=
- llvm::Attribute::constructAlignmentFromInt(AI.getIndirectAlign());
+ llvm::Attributes::constructAlignmentFromInt(AI.getIndirectAlign());
// byval disables readnone and readonly.
FuncAttrs &= ~(llvm::Attribute::ReadOnly |
llvm::Attribute::ReadNone);
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp
index 909a6e858b..419ce022e5 100644
--- a/lib/CodeGen/TargetInfo.cpp
+++ b/lib/CodeGen/TargetInfo.cpp
@@ -968,7 +968,7 @@ void X86_32TargetCodeGenInfo::SetTargetAttributes(const Decl *D,
llvm::Function *Fn = cast<llvm::Function>(GV);
// Now add the 'alignstack' attribute with a value of 16.
- Fn->addFnAttr(llvm::Attribute::constructStackAlignmentFromInt(16));
+ Fn->addFnAttr(llvm::Attributes::constructStackAlignmentFromInt(16));
}
}
}