X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FDebugInfo%2FPDB%2FPDBSymbol.h;h=b65089dd028b6ceeb46d21b2f5fc9b0f9206d9d9;hb=926749af90fbd6e4db5988628ecb81fbfac67afb;hp=38c578e2c24a03496144ff039ea907742255d128;hpb=44797c5a0907c0c0be04b2b39aada1aa0e3099f4;p=oota-llvm.git diff --git a/include/llvm/DebugInfo/PDB/PDBSymbol.h b/include/llvm/DebugInfo/PDB/PDBSymbol.h index 38c578e2c24..b65089dd028 100644 --- a/include/llvm/DebugInfo/PDB/PDBSymbol.h +++ b/include/llvm/DebugInfo/PDB/PDBSymbol.h @@ -13,7 +13,6 @@ #include #include "llvm/ADT/StringRef.h" -#include "llvm/Support/raw_ostream.h" #include "llvm/Support/Casting.h" #include "IPDBRawSymbol.h" @@ -27,6 +26,7 @@ namespace llvm { class IPDBRawSymbol; +class raw_ostream; /// PDBSymbol defines the base of the inheritance hierarchy for concrete symbol /// types (e.g. functions, executables, vtables, etc). All concrete symbol @@ -36,11 +36,11 @@ class IPDBRawSymbol; /// https://msdn.microsoft.com/en-us/library/370hs6k4.aspx class PDBSymbol { protected: - PDBSymbol(std::unique_ptr Symbol); + PDBSymbol(IPDBSession &PDBSession, std::unique_ptr Symbol); public: static std::unique_ptr - create(std::unique_ptr Symbol); + create(IPDBSession &PDBSession, std::unique_ptr Symbol); virtual ~PDBSymbol(); @@ -62,6 +62,7 @@ public: std::unique_ptr findInlineFramesByRVA(uint32_t RVA) const; protected: + IPDBSession &Session; const std::unique_ptr RawSymbol; };