mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
Redirect DataLayout from TargetMachine to Module in StackProtector
Summary: This change is part of a series of commits dedicated to have a single DataLayout during compilation by using always the one owned by the module. Reviewers: echristo Subscribers: llvm-commits, rafael, yaron.keren Differential Revision: http://reviews.llvm.org/D11010 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -122,7 +122,7 @@ bool StackProtector::ContainsProtectableArray(Type *Ty, bool &IsLarge,
|
|||||||
|
|
||||||
// If an array has more than SSPBufferSize bytes of allocated space, then we
|
// If an array has more than SSPBufferSize bytes of allocated space, then we
|
||||||
// emit stack protectors.
|
// emit stack protectors.
|
||||||
if (SSPBufferSize <= TLI->getDataLayout()->getTypeAllocSize(AT)) {
|
if (SSPBufferSize <= M->getDataLayout().getTypeAllocSize(AT)) {
|
||||||
IsLarge = true;
|
IsLarge = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user