Update for encapsulating the "construct*AlignmentFromInt" methods.

llvm-svn: 164374
This commit is contained in:
Bill Wendling 2012-09-21 16:07:49 +00:00
parent 89442efddc
commit e63adc5476
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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));
}
}
}