summaryrefslogtreecommitdiff
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.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp
index 891f4b3e0..07cb957db 100644
--- a/source/slang/slang-ir.cpp
+++ b/source/slang/slang-ir.cpp
@@ -2194,6 +2194,16 @@ namespace Slang
return (IRStringType*)getType(kIROp_StringType);
}
+ IRAssociatedType* IRBuilder::getAssociatedType()
+ {
+ return (IRAssociatedType*)getType(kIROp_AssociatedType);
+ }
+
+ IRRawPointerType* IRBuilder::getRawPointerType()
+ {
+ return (IRRawPointerType*)getType(kIROp_RawPointerType);
+ }
+
IRBasicBlockType* IRBuilder::getBasicBlockType()
{
return (IRBasicBlockType*)getType(kIROp_BasicBlockType);
@@ -2837,16 +2847,6 @@ namespace Slang
return structType;
}
- IRAssociatedType* IRBuilder::createAssociatedType()
- {
- IRAssociatedType* associatedType = createInst<IRAssociatedType>(
- this,
- kIROp_AssociatedType,
- nullptr);
- addGlobalValue(this, associatedType);
- return associatedType;
- }
-
IRInterfaceType* IRBuilder::createInterfaceType(UInt operandCount, IRInst* const* operands)
{
IRInterfaceType* interfaceType = createInst<IRInterfaceType>(