summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-08-15 20:55:21 -0700
committerGitHub <noreply@github.com>2023-08-15 20:55:21 -0700
commitc16f711d83df90f6826a65d61fc56cdbb932c92c (patch)
tree3680ff05b91aa4521fd5c5e9caa9de171cbac558 /source/slang/slang.cpp
parent0c366bc0a4332ee14d08f2555396a18cb64229fa (diff)
SPIRV: debug source and debug line. (#3109)
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp3
1 files changed, 1 insertions, 2 deletions
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> irModule(generateIRForTranslationUnit(getLinkage()->getASTBuilder(), translationUnit));
if (verifyDebugSerialization)