diff options
Diffstat (limited to 'clang/include')
| -rw-r--r-- | clang/include/clang/Basic/Builtins.def | 17 | ||||
| -rw-r--r-- | clang/include/clang/Basic/Builtins.h | 9 |
2 files changed, 2 insertions, 24 deletions
diff --git a/clang/include/clang/Basic/Builtins.def b/clang/include/clang/Basic/Builtins.def index 53e77cf35bf..7a440cc7082 100644 --- a/clang/include/clang/Basic/Builtins.def +++ b/clang/include/clang/Basic/Builtins.def @@ -67,7 +67,6 @@ // Builtin::Context class. Currently we have: // n -> nothrow // r -> noreturn -// U -> pure // c -> const // t -> signature is meaningless, use custom typechecking // F -> this is a libc/libm function with a '__builtin_' prefix added. @@ -774,22 +773,6 @@ LIBBUILTIN(sscanf, "icC*RcC*R.", "fs:1:", "stdio.h", ALL_LANGUAGES) LIBBUILTIN(vscanf, "icC*Ra", "fS:0:", "stdio.h", ALL_LANGUAGES) LIBBUILTIN(vfscanf, "iP*RcC*Ra", "fS:1:", "stdio.h", ALL_LANGUAGES) LIBBUILTIN(vsscanf, "icC*RcC*Ra", "fS:1:", "stdio.h", ALL_LANGUAGES) -// C99 ctype.h -LIBBUILTIN(isalnum, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(isalpha, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(isblank, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(iscntrl, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(isdigit, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(isgraph, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(islower, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(isprint, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(ispunct, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(isspace, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(isupper, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(isxdigit, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(tolower, "ii", "fnU", "ctype.h", ALL_LANGUAGES) -LIBBUILTIN(toupper, "ii", "fnU", "ctype.h", ALL_LANGUAGES) - // C99 // In some systems setjmp is a macro that expands to _setjmp. We undefine // it here to avoid having two identical LIBBUILTIN entries. diff --git a/clang/include/clang/Basic/Builtins.h b/clang/include/clang/Basic/Builtins.h index 8938e191bb4..5917843f294 100644 --- a/clang/include/clang/Basic/Builtins.h +++ b/clang/include/clang/Basic/Builtins.h @@ -89,16 +89,11 @@ public: return getRecord(ID).Type; } - /// \brief Return true if this function is a target-specific builtin. + /// \brief Return true if this function is a target-specific builtin bool isTSBuiltin(unsigned ID) const { return ID >= Builtin::FirstTSBuiltin; } - /// \brief Return true if this function has no side effects. - bool isPure(unsigned ID) const { - return strchr(getRecord(ID).Attributes, 'U') != nullptr; - } - /// \brief Return true if this function has no side effects and doesn't /// read memory. bool isConst(unsigned ID) const { @@ -160,7 +155,7 @@ public: /// \brief Completely forget that the given ID was ever considered a builtin, /// e.g., because the user provided a conflicting signature. void forgetBuiltin(unsigned ID, IdentifierTable &Table); - + /// \brief If this is a library function that comes from a specific /// header, retrieve that header name. const char *getHeaderName(unsigned ID) const { |

