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.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tools/slang-test/test-context.cpp') diff --git a/tools/slang-test/test-context.cpp b/tools/slang-test/test-context.cpp index fe9bdbc0e..c37261b61 100644 --- a/tools/slang-test/test-context.cpp +++ b/tools/slang-test/test-context.cpp @@ -92,21 +92,21 @@ void TestContext::setInnerMainFunc(const String& name, InnerMainFunc func) } } -CPPCompilerSet* TestContext::getCPPCompilerSet() +DownstreamCompilerSet* TestContext::getCompilerSet() { - if (!cppCompilerSet) + if (!compilerSet) { - cppCompilerSet = new CPPCompilerSet; + compilerSet = new DownstreamCompilerSet; - CPPCompilerUtil::InitializeSetDesc desc; - CPPCompilerUtil::initializeSet(desc, cppCompilerSet); + DownstreamCompilerUtil::InitializeSetDesc desc; + DownstreamCompilerUtil::initializeSet(desc, compilerSet); } - return cppCompilerSet; + return compilerSet; } -Slang::CPPCompiler* TestContext::getDefaultCPPCompiler() +Slang::DownstreamCompiler* TestContext::getDefaultCompiler() { - CPPCompilerSet* set = getCPPCompilerSet(); + DownstreamCompilerSet* set = getCompilerSet(); return set ? set->getDefaultCompiler() : nullptr; } -- cgit v1.2.3