[cfe-commits] r164374 - in /cfe/trunk/lib/CodeGen: CGCall.cpp TargetInfo.cpp
Bill Wendling
isanbard at gmail.com
Fri Sep 21 09:07:49 PDT 2012
Author: void
Date: Fri Sep 21 11:07:49 2012
New Revision: 164374
URL: http://llvm.org/viewvc/llvm-project?rev=164374&view=rev
Log:
Update for encapsulating the "construct*AlignmentFromInt" methods.
Modified:
cfe/trunk/lib/CodeGen/CGCall.cpp
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=164374&r1=164373&r2=164374&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Fri Sep 21 11:07:49 2012
@@ -1043,7 +1043,7 @@
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);
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=164374&r1=164373&r2=164374&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Fri Sep 21 11:07:49 2012
@@ -968,7 +968,7 @@
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));
}
}
}
More information about the cfe-commits
mailing list