summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2021-12-07 13:15:23 -0500
committerGitHub <noreply@github.com>2021-12-07 13:15:23 -0500
commit8b3df74758c536db9535903158242dd2350e5265 (patch)
tree98258066e11153d747448d68785bbb5be251d448 /source/slang/slang-emit.cpp
parent9e666a332aafeffdc15ceab6017fe377144a928b (diff)
Output of IR ids as command line option (#2043)
* #include an absolute path didn't work - because paths were taken to always be relative. * WIP control of dump options. * Removed SourceManager for IRDumpOptions * Arm aarch64 debug connection timeout - as CI timed out.
Diffstat (limited to 'source/slang/slang-emit.cpp')
-rw-r--r--source/slang/slang-emit.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp
index 951e6fad5..335e7f7d9 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -144,10 +144,7 @@ static void dumpIRIfEnabled(
//FILE* f = nullptr;
//fopen_s(&f, (String("dump-") + label + ".txt").getBuffer(), "wt");
//FileWriter writer(f, 0);
- IRDumpOptions options;
- options.sourceManager = compileRequest->getSourceManager();
-
- dumpIR(irModule, options, label, &writer);
+ dumpIR(irModule, compileRequest->m_irDumpOptions, label, compileRequest->getSourceManager(), &writer);
//fclose(f);
}
}