mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-30 14:41:33 +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:
parent
aa0d6db1e7
commit
c845b4d7be
@ -122,7 +122,7 @@ bool StackProtector::ContainsProtectableArray(Type *Ty, bool &IsLarge,
|
||||
|
||||
// If an array has more than SSPBufferSize bytes of allocated space, then we
|
||||
// emit stack protectors.
|
||||
if (SSPBufferSize <= TLI->getDataLayout()->getTypeAllocSize(AT)) {
|
||||
if (SSPBufferSize <= M->getDataLayout().getTypeAllocSize(AT)) {
|
||||
IsLarge = true;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user