[llvm] f82b5a6 - [DebugInfo] Forward-declare PDBFile (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 23:26:10 PST 2021


Author: Kazu Hirata
Date: 2021-01-27T23:25:38-08:00
New Revision: f82b5a647eb7c89cc217f1f1e60225c19f70b8f9

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

LOG: [DebugInfo] Forward-declare PDBFile (NFC)

NativeEnumInjectedSources.h needs PDBFile but relies on a
forward declaration of PDBFile in InjectedSourceStream.h.
This patch adds a forward declaration right in
NativeEnumInjectedSources.h.

While we are at it, this patch removes the one in
InjectedSourceStream.h, where it is unnecessary.

Added: 
    

Modified: 
    llvm/include/llvm/DebugInfo/PDB/Native/InjectedSourceStream.h
    llvm/include/llvm/DebugInfo/PDB/Native/NativeEnumInjectedSources.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/DebugInfo/PDB/Native/InjectedSourceStream.h b/llvm/include/llvm/DebugInfo/PDB/Native/InjectedSourceStream.h
index d0cac3749bca..07f63ee8f1ed 100644
--- a/llvm/include/llvm/DebugInfo/PDB/Native/InjectedSourceStream.h
+++ b/llvm/include/llvm/DebugInfo/PDB/Native/InjectedSourceStream.h
@@ -18,7 +18,6 @@ namespace msf {
 class MappedBlockStream;
 }
 namespace pdb {
-class PDBFile;
 class PDBStringTable;
 
 class InjectedSourceStream {

diff  --git a/llvm/include/llvm/DebugInfo/PDB/Native/NativeEnumInjectedSources.h b/llvm/include/llvm/DebugInfo/PDB/Native/NativeEnumInjectedSources.h
index ca1e22bd82a2..50d4c2db3c2a 100644
--- a/llvm/include/llvm/DebugInfo/PDB/Native/NativeEnumInjectedSources.h
+++ b/llvm/include/llvm/DebugInfo/PDB/Native/NativeEnumInjectedSources.h
@@ -17,6 +17,7 @@ namespace llvm {
 namespace pdb {
 
 class InjectedSourceStream;
+class PDBFile;
 class PDBStringTable;
 
 class NativeEnumInjectedSources : public IPDBEnumChildren<IPDBInjectedSource> {


        


More information about the llvm-commits mailing list