Author: Timm Bäder Date: 2023-04-04T10:44:56+02:00 New Revision: 626b7e5dd249f569203e024141c1a2a0f618df9c
URL: https://github.com/llvm/llvm-project/commit/626b7e5dd249f569203e024141c1a2a0f618df9c DIFF: https://github.com/llvm/llvm-project/commit/626b7e5dd249f569203e024141c1a2a0f618df9c.diff LOG: [clang][Interp][NFC] Remove Integral.h include from PrimType.h Added: Modified: clang/lib/AST/Interp/ByteCodeExprGen.h clang/lib/AST/Interp/PrimType.h clang/lib/AST/Interp/Program.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.h b/clang/lib/AST/Interp/ByteCodeExprGen.h index af5b4678b070..46a926bfb5f0 100644 --- a/clang/lib/AST/Interp/ByteCodeExprGen.h +++ b/clang/lib/AST/Interp/ByteCodeExprGen.h @@ -224,9 +224,9 @@ class ByteCodeExprGen : public ConstStmtVisitor<ByteCodeExprGen<Emitter>, bool>, llvm::function_ref<bool(PrimType)> Indirect); /// Emits an APSInt constant. - bool emitConst(const APSInt &Value, const Expr *E); - bool emitConst(const APInt &Value, const Expr *E) { - return emitConst(static_cast<APSInt>(Value), E); + bool emitConst(const llvm::APSInt &Value, const Expr *E); + bool emitConst(const llvm::APInt &Value, const Expr *E) { + return emitConst(static_cast<llvm::APSInt>(Value), E); } /// Emits an integer constant. diff --git a/clang/lib/AST/Interp/PrimType.h b/clang/lib/AST/Interp/PrimType.h index 91311cf7030a..30bec3f2a17c 100644 --- a/clang/lib/AST/Interp/PrimType.h +++ b/clang/lib/AST/Interp/PrimType.h @@ -13,7 +13,6 @@ #ifndef LLVM_CLANG_AST_INTERP_TYPE_H #define LLVM_CLANG_AST_INTERP_TYPE_H -#include "Integral.h" #include <climits> #include <cstddef> #include <cstdint> @@ -25,6 +24,7 @@ class Pointer; class Boolean; class Floating; class FunctionPointer; +template <unsigned Bits, bool Signed> class Integral; /// Enumeration of the primitive types of the VM. enum PrimType : unsigned { diff --git a/clang/lib/AST/Interp/Program.cpp b/clang/lib/AST/Interp/Program.cpp index 106c59463e2b..f6f378dd49f1 100644 --- a/clang/lib/AST/Interp/Program.cpp +++ b/clang/lib/AST/Interp/Program.cpp @@ -10,6 +10,7 @@ #include "ByteCodeStmtGen.h" #include "Context.h" #include "Function.h" +#include "Integral.h" #include "Opcode.h" #include "PrimType.h" #include "clang/AST/Decl.h" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits