diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-02-11 12:38:04 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-02-11 12:38:11 +0000 |
commit | e3b557809604d036af6e00c60f012c2025b59a5e (patch) | |
tree | 8a11ba2269a3b669601e2fd41145b174008f4da8 /clang/lib/AST/Interp/Context.h | |
parent | 08e8dd7b9db7bb4a9de26d44c1cbfd24e869c014 (diff) |
Diffstat (limited to 'clang/lib/AST/Interp/Context.h')
-rw-r--r-- | clang/lib/AST/Interp/Context.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/AST/Interp/Context.h b/clang/lib/AST/Interp/Context.h index 0627d9fb14f5..e49422e64b87 100644 --- a/clang/lib/AST/Interp/Context.h +++ b/clang/lib/AST/Interp/Context.h @@ -18,7 +18,6 @@ #include "InterpStack.h" #include "clang/AST/APValue.h" -#include "llvm/ADT/PointerIntPair.h" namespace clang { class ASTContext; @@ -33,7 +32,7 @@ class State; enum PrimType : unsigned; /// Holds all information required to evaluate constexpr code in a module. -class Context { +class Context final { public: /// Initialises the constexpr VM. Context(ASTContext &Ctx); @@ -60,7 +59,7 @@ public: unsigned getCharBit() const; /// Classifies an expression. - llvm::Optional<PrimType> classify(QualType T); + std::optional<PrimType> classify(QualType T) const; private: /// Runs a function. @@ -69,7 +68,6 @@ private: /// Checks a result from the interpreter. bool Check(State &Parent, llvm::Expected<bool> &&R); -private: /// Current compilation context. ASTContext &Ctx; /// Interpreter stack, shared across invocations. |