From 79ec0cfdb5f3461c763e0bf712cf42eb87fccb90 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 10 Dec 2019 10:02:19 -0500 Subject: DownstreamCompiler abstraction (#1149) * CPPCompiler -> DownstreamCompiler * Added DownstreamCompileResult to start abstraction such that we don't need files. * * Split out slang-blob.cpp * Made CompileResult hold a DownstreamCompileResult - for access to binary or ISlangSharedLibrary * Keep temporary files in scope. * Add a hash to the hex dump stream. * Move all file tracking into DownstreamCompiler. --- tools/slang-test/test-context.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/slang-test/test-context.h') diff --git a/tools/slang-test/test-context.h b/tools/slang-test/test-context.h index a9f3cec25..aa81fc72a 100644 --- a/tools/slang-test/test-context.h +++ b/tools/slang-test/test-context.h @@ -9,7 +9,7 @@ #include "../../source/core/slang-dictionary.h" #include "../../source/core/slang-test-tool-util.h" #include "../../source/core/slang-render-api-util.h" -#include "../../source/core/slang-cpp-compiler.h" +#include "../../source/core/slang-downstream-compiler.h" #include "options.h" @@ -92,9 +92,9 @@ class TestContext /// If set, then tests are executed bool isExecuting() const { return testRequirements == nullptr; } - /// Get compiler factory - Slang::CPPCompilerSet* getCPPCompilerSet(); - Slang::CPPCompiler* getDefaultCPPCompiler(); + /// Get compiler set + Slang::DownstreamCompilerSet* getCompilerSet(); + Slang::DownstreamCompiler* getDefaultCompiler(); /// Ctor TestContext(); @@ -112,7 +112,7 @@ class TestContext Slang::RenderApiFlags availableRenderApiFlags = 0; bool isAvailableRenderApiFlagsValid = false; - Slang::RefPtr cppCompilerSet; + Slang::RefPtr compilerSet; protected: struct SharedLibraryTool -- cgit v1.2.3