aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/TargetInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-23 06:06:36 +0000
committerChris Lattner <sabre@nondot.org>2009-09-23 06:06:36 +0000
commit21fb98ee003e992b0c4e204d98a19e0ef544cae3 (patch)
treefb74b2013454c3630bc397c5a8ba0c8f9b654b42 /include/clang/Basic/TargetInfo.h
parent6a3bc6df36848188e9d0c1d978170c2b0918c6a3 (diff)
implement support for __builtin_eh_return_data_regno on x86-32 and x86-64.
This implements PR5034 and rdar://6836445. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82614 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/TargetInfo.h')
-rw-r--r--include/clang/Basic/TargetInfo.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h
index 1f61e3fccc..8ce85cf6bb 100644
--- a/include/clang/Basic/TargetInfo.h
+++ b/include/clang/Basic/TargetInfo.h
@@ -384,10 +384,17 @@ public:
return RegParmMax;
}
- // isTLSSupported - Whether the target supports thread-local storage
+ /// isTLSSupported - Whether the target supports thread-local storage.
bool isTLSSupported() const {
return TLSSupported;
}
+
+ /// getEHDataRegisterNumber - Return the register number that
+ /// __builtin_eh_return_regno would return with the specified argument.
+ virtual int getEHDataRegisterNumber(unsigned RegNo) const {
+ return -1;
+ }
+
protected:
virtual uint64_t getPointerWidthV(unsigned AddrSpace) const {