2019-08-05 Arvind Sankar <nived...@alum.mit.edu> gcc/ChangeLog:
* rtl.h: Add a predicate macro for checking CONST_STRING. 1 file changed, 3 insertions(+) diff --git a/gcc/rtl.h b/gcc/rtl.h index 45e2b85867d..d02772b65be 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -821,6 +821,9 @@ struct GTY(()) rtvec_def { /* Predicate yielding nonzero iff X is an rtx for a vector const. */ #define CONST_VECTOR_P(X) (GET_CODE (X) == CONST_VECTOR) +/* Predicate yielding nonzero iff X is an rtx for an rtl string const. */ +#define CONST_STRING_P(X) (GET_CODE (X) == CONST_STRING) + /* Predicate yielding true iff X is an rtx for a integer const. */ #if TARGET_SUPPORTS_WIDE_INT #define CONST_SCALAR_INT_P(X) \ -- 2.21.0