diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-01-07 19:58:54 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-01-07 19:58:54 +0000 |
commit | 8e721b714a92de803000c65fb8a57a1d8a810322 (patch) | |
tree | c58d0f3e54a8cbffd09c992b1a21d1433488f728 /include/clang/Basic/TargetInfo.h | |
parent | 32b94bedc6a789e4091626e7433e73555cf9df00 (diff) |
Add support for attribute((mode(unwind_word))).
Patch by Nick Lewycky. Fixes pr8703.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/TargetInfo.h')
-rw-r--r-- | include/clang/Basic/TargetInfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h index fbf2d30e4e..328ffd9601 100644 --- a/include/clang/Basic/TargetInfo.h +++ b/include/clang/Basic/TargetInfo.h @@ -338,6 +338,9 @@ public: return getTypeWidth(IntMaxType); } + // Return the size of unwind_word for this target. + unsigned getUnwindWordWidth() const { return getPointerWidth(0); } + /// \brief Return the "preferred" register width on this target. uint64_t getRegisterWidth() const { // Currently we assume the register width on the target matches the pointer |