Android support for SafeStack.
[oota-llvm.git] / include / llvm / Target / TargetLowering.h
index caf28d2b118b1e6536864c34a75d004d10f3ae3b..64e0ee55030416e892e1119d4399ea22c9bd9f2a 100644 (file)
@@ -995,6 +995,14 @@ public:
     return false;
   }
 
+  /// Return true if the target stores SafeStack pointer at a fixed offset in
+  /// some non-standard address space, and populates the address space and
+  /// offset as appropriate.
+  virtual bool getSafeStackPointerLocation(unsigned & /*AddressSpace*/,
+                                           unsigned & /*Offset*/) const {
+    return false;
+  }
+
   /// Returns true if a cast between SrcAS and DestAS is a noop.
   virtual bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const {
     return false;