From ccc26c2d22d471ae649bf16f37ed1cd6cfbddd1b Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 12 Jun 2024 09:45:50 -0700 Subject: Extend the COM-based API to support whole program compilation. (#4355) --- slang.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'slang.h') diff --git a/slang.h b/slang.h index ea87daeb4..59b19d09e 100644 --- a/slang.h +++ b/slang.h @@ -4953,6 +4953,11 @@ namespace slang uint32_t compilerOptionEntryCount, CompilerOptionEntry* compilerOptionEntries, ISlangBlob** outDiagnostics = nullptr) = 0; + + virtual SLANG_NO_THROW SlangResult SLANG_MCALL getTargetCode( + SlangInt targetIndex, + IBlob** outCode, + IBlob** outDiagnostics = nullptr) = 0; }; #define SLANG_UUID_IComponentType IComponentType::getTypeGuid() -- cgit v1.2.3