OSDN Git Service

[lanai] Simplify small section check in LowerGlobalAddress and treat ldata sections...
authorJacques Pienaar <jpienaar@google.com>
Thu, 15 Dec 2016 16:56:16 +0000 (16:56 +0000)
committerJacques Pienaar <jpienaar@google.com>
Thu, 15 Dec 2016 16:56:16 +0000 (16:56 +0000)
commitde365874b002bfa7262c111008caf417b7ec640f
tree38677ad9f39a4306cdbc7a97aca39bdf04adb4f8
parentfb4f51ede11c7b8926a2c08c42b5f646d9aeffbc
[lanai] Simplify small section check in LowerGlobalAddress and treat ldata sections specially.

Move the check for the code model into isGlobalInSmallSectionImpl and return false (not in small section) for variables placed in sections prefixed with .ldata (workaround for a tool limitation).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289832 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Lanai/LanaiISelLowering.cpp
lib/Target/Lanai/LanaiTargetObjectFile.cpp
test/CodeGen/Lanai/codemodel.ll