summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit-cpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-cpp.cpp')
-rw-r--r--source/slang/slang-emit-cpp.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp
index 66829308d..c6d2bc6f3 100644
--- a/source/slang/slang-emit-cpp.cpp
+++ b/source/slang/slang-emit-cpp.cpp
@@ -305,7 +305,7 @@ SlangResult CPPSourceEmitter::calcTypeName(IRType* type, CodeGenTarget target, S
}
case kIROp_NativePtrType:
case kIROp_PtrType:
- case kIROp_ConstRefType:
+ case kIROp_BorrowInParamType:
{
// Special note on `constref` types and why they are not emitted
// as a `const` pointer:
@@ -499,8 +499,8 @@ void CPPSourceEmitter::useType(IRType* type)
type = static_cast<IRPtrType*>(type)->getValueType();
break;
}
- case kIROp_RefType:
- case kIROp_ConstRefType:
+ case kIROp_RefParamType:
+ case kIROp_BorrowInParamType:
{
type = static_cast<IRPtrTypeBase*>(type)->getValueType();
break;
@@ -1151,16 +1151,16 @@ void CPPSourceEmitter::_emitType(IRType* type, DeclaratorInfo* declarator)
break;
}
case kIROp_PtrType:
- case kIROp_InOutType:
- case kIROp_OutType:
+ case kIROp_BorrowInOutParamType:
+ case kIROp_OutParamType:
{
auto ptrType = cast<IRPtrTypeBase>(type);
PtrDeclaratorInfo ptrDeclarator(declarator);
_emitType(ptrType->getValueType(), &ptrDeclarator);
}
break;
- case kIROp_RefType:
- case kIROp_ConstRefType:
+ case kIROp_RefParamType:
+ case kIROp_BorrowInParamType:
{
auto ptrType = cast<IRPtrTypeBase>(type);
PtrDeclaratorInfo refDeclarator(declarator);