summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir.cpp')
-rw-r--r--source/slang/slang-ir.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp
index c63ca2bec..a61859a5e 100644
--- a/source/slang/slang-ir.cpp
+++ b/source/slang/slang-ir.cpp
@@ -3379,10 +3379,16 @@ IRInst* IRBuilder::emitOutImplicitCast(IRInst* type, IRInst* value)
{
return emitIntrinsicInst((IRType*)type, kIROp_OutImplicitCast, 1, &value);
}
-IRInst* IRBuilder::emitDebugSource(UnownedStringSlice fileName, UnownedStringSlice source)
+IRInst* IRBuilder::emitDebugSource(
+ UnownedStringSlice fileName,
+ UnownedStringSlice source,
+ bool isIncludedFile)
{
- IRInst* args[] = {getStringValue(fileName), getStringValue(source)};
- return emitIntrinsicInst(getVoidType(), kIROp_DebugSource, 2, args);
+ IRInst* args[] = {
+ getStringValue(fileName),
+ getStringValue(source),
+ getBoolValue(isIncludedFile)};
+ return emitIntrinsicInst(getVoidType(), kIROp_DebugSource, 3, args);
}
IRInst* IRBuilder::emitDebugBuildIdentifier(
UnownedStringSlice buildIdentifier,