mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-22 03:03:43 +00:00
Update for encapsulating the "construct*AlignmentFromInt" methods.
llvm-svn: 164374
This commit is contained in:
parent
89442efddc
commit
e63adc5476
@ -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);
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user