[clang][Interp][NFC] Remove Integral.h include from PrimType.h
authorTimm Bäder <tbaeder@redhat.com>
Thu, 16 Feb 2023 08:01:52 +0000 (09:01 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Tue, 4 Apr 2023 08:44:56 +0000 (10:44 +0200)
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/PrimType.h
clang/lib/AST/Interp/Program.cpp

index af5b467..46a926b 100644 (file)
@@ -224,9 +224,9 @@ private:
                       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.
index 91311cf..30bec3f 100644 (file)
@@ -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 {
index 106c594..f6f378d 100644 (file)
@@ -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"