summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-09-23 01:03:51 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-09-23 01:03:51 +0000
commitce2e16f00c5f544879e8ac1e149b5fb268241817 (patch)
treea8fba6bbe7813194c0c3893a18a46b26942c7fcd /llvm/lib/CodeGen
parentb54a72ef78f3236a6c831687d505cdb725cb51ff (diff)
downloadbcm5719-llvm-ce2e16f00c5f544879e8ac1e149b5fb268241817.tar.gz
bcm5719-llvm-ce2e16f00c5f544879e8ac1e149b5fb268241817.zip
Android support for SafeStack.
Add two new ways of accessing the unsafe stack pointer: * At a fixed offset from the thread TLS base. This is very similar to StackProtector cookies, but we plan to extend it to other backends (ARM in particular) soon. Bionic-side implementation here: https://android-review.googlesource.com/170988. * Via a function call, as a fallback for platforms that provide neither a fixed TLS slot, nor a reasonable TLS implementation (i.e. not emutls). llvm-svn: 248357
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/Passes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/Passes.cpp b/llvm/lib/CodeGen/Passes.cpp
index 7ea7b6e45ce..114c9d11be8 100644
--- a/llvm/lib/CodeGen/Passes.cpp
+++ b/llvm/lib/CodeGen/Passes.cpp
@@ -466,7 +466,7 @@ void TargetPassConfig::addISelPrepare() {
// Add both the safe stack and the stack protection passes: each of them will
// only protect functions that have corresponding attributes.
- addPass(createSafeStackPass());
+ addPass(createSafeStackPass(TM));
addPass(createStackProtectorPass(TM));
if (PrintISelInput)
OpenPOWER on IntegriCloud