diff options
author | Bill Wendling <isanbard@gmail.com> | 2014-01-06 00:43:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2014-01-06 00:43:20 +0000 |
commit | 4644d79871d5c337608dff99816ddbdc40cb1175 (patch) | |
tree | c48572a9ed99ae6272ea444c0430eacf984e9b69 /include | |
parent | 7f1068198534f563fa7640056ec1d595e6662c09 (diff) | |
download | llvm-4644d79871d5c337608dff99816ddbdc40cb1175.tar.gz llvm-4644d79871d5c337608dff99816ddbdc40cb1175.tar.bz2 llvm-4644d79871d5c337608dff99816ddbdc40cb1175.tar.xz |
Refactor function that checks that __builtin_returnaddress's argument is constant.
This moves the check up into the parent class so that all targets can use it
without having to copy (and keep in sync) the same error message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index e6917b74e7..c8351b7c5e 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -2164,6 +2164,10 @@ public: return 0; } + + bool verifyReturnAddressArgumentIsConstant(SDValue Op, + SelectionDAG &DAG) const; + //===--------------------------------------------------------------------===// // Inline Asm Support hooks // |