summaryrefslogtreecommitdiffstats
path: root/source/slang/compiler.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2018-12-10 12:42:15 -0800
committerGitHub <noreply@github.com>2018-12-10 12:42:15 -0800
commitb2997170df7cc2703de714a946a38dc35058e7f8 (patch)
treebbd19208ba07a2f45a2c25f28f6cf77be16f0b49 /source/slang/compiler.cpp
parent32f57c30cfce1681f5fe617e4fe230e88eb7b840 (diff)
Remove the "VM" and "bytecode" features (#745)
* Remove the "VM" and "bytecode" features The "bytecode" in `bc.{h,cpp}` was an initial attempt at a serialized encoding for the Slang IR, but we now have the `ir-serialize.{h,cpp}` approach which was has been kept up to date much better. Similarly, the "VM" in `vm.{h,cpp}` was intended to be a system for interpreting Slang code in the bytecode format directly (so that you could load and evaluate code in a Slang module in a lightweight fashion). This never got used past a single test, which we eventually disabled. There are good ideas in some of this code, but at this point the implementations have bit-rotted to a point where trying to maintain it is more costly than it would be to re-created it if/when we ever decide these features are important again. * fixup: remove slang-eval-test from Makefile
Diffstat (limited to 'source/slang/compiler.cpp')
-rw-r--r--source/slang/compiler.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/source/slang/compiler.cpp b/source/slang/compiler.cpp
index 37e9827f8..0f333aa3d 100644
--- a/source/slang/compiler.cpp
+++ b/source/slang/compiler.cpp
@@ -5,7 +5,6 @@
#include "../core/slang-io.h"
#include "../core/slang-string-util.h"
-#include "bytecode.h"
#include "compiler.h"
#include "lexer.h"
#include "lower-to-ir.h"
@@ -1079,18 +1078,6 @@ SlangResult dissassembleDXILUsingDXC(
generateOutputForTarget(targetReq);
}
- // If we are being asked to generate code in a container
- // format, then we are now in a position to do so.
- switch (compileRequest->containerFormat)
- {
- default:
- break;
-
- case ContainerFormat::SlangModule:
- generateBytecodeForCompileRequest(compileRequest);
- break;
- }
-
// If we are in command-line mode, we might be expected to actually
// write output to one or more files here.