summaryrefslogtreecommitdiffstats
path: root/slang.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-06-12 09:45:50 -0700
committerGitHub <noreply@github.com>2024-06-12 09:45:50 -0700
commitccc26c2d22d471ae649bf16f37ed1cd6cfbddd1b (patch)
treef1b84f6c30d2f8aa5014587ef1b7995ae51996e4 /slang.h
parent318adcc27b8d89ec1d47c445a93239dd81be0b31 (diff)
Extend the COM-based API to support whole program compilation. (#4355)
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h5
1 files changed, 5 insertions, 0 deletions
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()