From dbf5f413cd7a7b0448312a6f198b2a544087ac58 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 10 Jan 2019 16:01:05 -0500 Subject: Improvements around review of debug serialization info (#769) * * Make SourceView and SourceFile no longer derive from RefObject * Both have life time now managed by SourceManager * Tidied up a little around the serialization test code - just create the IRModule once * Simplified code around deleting SourceView/File. * Looked into generateIRForTranslationUnit - seems reasonable to just call it once, because it has side effects. --- source/slang/ir-serialize.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/ir-serialize.h') diff --git a/source/slang/ir-serialize.h b/source/slang/ir-serialize.h index 667ea8743..c32013928 100644 --- a/source/slang/ir-serialize.h +++ b/source/slang/ir-serialize.h @@ -473,7 +473,7 @@ protected: SourceLoc::RawValue m_baseSourceLoc; ///< The base source location - RefPtr m_sourceFile; ///< The source file + SourceFile* m_sourceFile; ///< The source file List m_lineIndexUsed; ///< Has 1 if the line is used List m_usedLineIndices; ///< Holds the lines that have been hit -- cgit v1.2.3