summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2014-01-06 00:43:20 +0000
committerBill Wendling <isanbard@gmail.com>2014-01-06 00:43:20 +0000
commit4644d79871d5c337608dff99816ddbdc40cb1175 (patch)
treec48572a9ed99ae6272ea444c0430eacf984e9b69 /include
parent7f1068198534f563fa7640056ec1d595e6662c09 (diff)
downloadllvm-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.h4
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
//