From c16f711d83df90f6826a65d61fc56cdbb932c92c Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 15 Aug 2023 20:55:21 -0700 Subject: SPIRV: debug source and debug line. (#3109) --- source/slang/slang.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/slang/slang.cpp') diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 71c705246..da818984b 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -170,6 +170,7 @@ void Session::init() // Built in linkage uses the built in builder m_builtinLinkage = new Linkage(this, builtinAstBuilder, nullptr); + m_builtinLinkage->debugInfoLevel = DebugInfoLevel::None; // Because the `Session` retains the builtin `Linkage`, // we need to make sure that the parent pointer inside @@ -2425,8 +2426,6 @@ void FrontEndCompileRequest::generateIR() // * it can generate diagnostics /// Generate IR for translation unit. - /// TODO(JS): Use the linkage ASTBuilder, because it seems possible that cross module constructs are possible in - /// ir lowering. RefPtr irModule(generateIRForTranslationUnit(getLinkage()->getASTBuilder(), translationUnit)); if (verifyDebugSerialization) -- cgit v1.2.3