[clang] 9b087a7 - [clang][Interp][NFC] Forward-declare Pointer in PrimType header

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 13 01:41:56 PDT 2022


Author: Timm Bäder
Date: 2022-09-13T10:40:52+02:00
New Revision: 9b087a70e66c785f64279634c536a848e78261ea

URL: https://github.com/llvm/llvm-project/commit/9b087a70e66c785f64279634c536a848e78261ea
DIFF: https://github.com/llvm/llvm-project/commit/9b087a70e66c785f64279634c536a848e78261ea.diff

LOG: [clang][Interp][NFC] Forward-declare Pointer in PrimType header

No need to include the full Pointer.h here.

Added: 
    

Modified: 
    clang/lib/AST/Interp/PrimType.cpp
    clang/lib/AST/Interp/PrimType.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/PrimType.cpp b/clang/lib/AST/Interp/PrimType.cpp
index 082bfaf3c207..bd0f73df2ead 100644
--- a/clang/lib/AST/Interp/PrimType.cpp
+++ b/clang/lib/AST/Interp/PrimType.cpp
@@ -7,6 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "PrimType.h"
+#include "Pointer.h"
 
 using namespace clang;
 using namespace clang::interp;

diff  --git a/clang/lib/AST/Interp/PrimType.h b/clang/lib/AST/Interp/PrimType.h
index de4bf9bf802e..8490c1f6548a 100644
--- a/clang/lib/AST/Interp/PrimType.h
+++ b/clang/lib/AST/Interp/PrimType.h
@@ -18,11 +18,12 @@
 #include <cstdint>
 #include "Boolean.h"
 #include "Integral.h"
-#include "Pointer.h"
 
 namespace clang {
 namespace interp {
 
+class Pointer;
+
 /// Enumeration of the primitive types of the VM.
 enum PrimType : unsigned {
   PT_Sint8,


        


More information about the cfe-commits mailing list