Author: Timm Bäder
Date: 2023-08-17T09:21:51+02:00
New Revision: 3cd8196bc38c406329e9395f4cbb7cbb29a92d27

URL: 
https://github.com/llvm/llvm-project/commit/3cd8196bc38c406329e9395f4cbb7cbb29a92d27
DIFF: 
https://github.com/llvm/llvm-project/commit/3cd8196bc38c406329e9395f4cbb7cbb29a92d27.diff

LOG: [clang][Interp][NFC] Declare Pointer::operator<< earlier

So we can use it in Pointer.h as well when debugging.

Added: 
    

Modified: 
    clang/lib/AST/Interp/Pointer.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/Pointer.h b/clang/lib/AST/Interp/Pointer.h
index f8e3802d4a2299..8385b032c207b0 100644
--- a/clang/lib/AST/Interp/Pointer.h
+++ b/clang/lib/AST/Interp/Pointer.h
@@ -29,6 +29,9 @@ class DeadBlock;
 class Pointer;
 enum PrimType : unsigned;
 
+class Pointer;
+inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Pointer &P);
+
 /// A pointer to a memory block, live or dead.
 ///
 /// This object can be allocated into interpreter stack frames. If pointing to


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to