diff options
Diffstat (limited to 'clang/include/clang/AST/Builtins.h')
-rw-r--r-- | clang/include/clang/AST/Builtins.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/include/clang/AST/Builtins.h b/clang/include/clang/AST/Builtins.h index b16d3bf3413..007e8dea8d1 100644 --- a/clang/include/clang/AST/Builtins.h +++ b/clang/include/clang/AST/Builtins.h @@ -72,6 +72,11 @@ public: return GetRecord(ID).Name; } + /// GetTypeString - Get the type descriptor string for the specified builtin. + const char *GetTypeString(unsigned ID) const { + return GetRecord(ID).Type; + } + /// isConst - Return true if this function has no side effects and doesn't /// read memory. bool isConst(unsigned ID) const { @@ -121,13 +126,6 @@ public: return strchr(GetRecord(ID).Attributes, 'e') != 0; } - /// GetBuiltinType - Return the type for the specified builtin. - enum GetBuiltinTypeError { - GE_None, //< No error - GE_Missing_FILE //< Missing the FILE type from <stdio.h> - }; - QualType GetBuiltinType(unsigned ID, ASTContext &Context, - GetBuiltinTypeError &Error) const; private: const Info &GetRecord(unsigned ID) const; }; |