aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-07-06 05:18:56 +0000
committerEric Christopher <echristo@apple.com>2010-07-06 05:18:56 +0000
commitf7a0c7bf8bc8318ed28d889c9a56437ab3e91385 (patch)
tree939c6983e75200e8aa262597fd4787d8b12007e9 /include
parent10d2f4d01bb1732611d0647df321164bc0b6c98b (diff)
downloadexternal_llvm-f7a0c7bf8bc8318ed28d889c9a56437ab3e91385.zip
external_llvm-f7a0c7bf8bc8318ed28d889c9a56437ab3e91385.tar.gz
external_llvm-f7a0c7bf8bc8318ed28d889c9a56437ab3e91385.tar.bz2
Fix up -fstack-protector on linux to use the segment
registers. Split out testcases per architecture and os now. Patch from Nelson Elhage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetLowering.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index eb048f6..497a025 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -749,6 +749,14 @@ public:
/// getFunctionAlignment - Return the Log2 alignment of this function.
virtual unsigned getFunctionAlignment(const Function *) const = 0;
+ /// getStackCookieLocation - Return true if the target stores stack
+ /// protector cookies at a fixed offset in some non-standard address
+ /// space, and populates the address space and offset as
+ /// appropriate.
+ virtual bool getStackCookieLocation(unsigned &AddressSpace, unsigned &Offset) const {
+ return false;
+ }
+
//===--------------------------------------------------------------------===//
// TargetLowering Optimization Methods
//