summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2020-06-25 16:29:07 -0700
committerYong He <yonghe@outlook.com>2020-06-25 16:29:07 -0700
commit218a39b65c86654772c3d6adf2479e7cadc85d24 (patch)
treec636a65ff1ed8c347f10f4e9c2c6a703fd9ad8ad /source/slang/slang-ir.cpp
parent509e36b62de7578843abc2547921beadff7a3ce0 (diff)
remove ThisPointerDecoration, generate IRInterfaceType in one pass
Diffstat (limited to 'source/slang/slang-ir.cpp')
-rw-r--r--source/slang/slang-ir.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp
index 8cf7ab171..ef5ecb959 100644
--- a/source/slang/slang-ir.cpp
+++ b/source/slang/slang-ir.cpp
@@ -2200,6 +2200,11 @@ namespace Slang
return (IRAssociatedType*)getType(kIROp_AssociatedType);
}
+ IRThisType* IRBuilder::getThisType()
+ {
+ return (IRThisType*)getType(kIROp_ThisType);
+ }
+
IRRawPointerType* IRBuilder::getRawPointerType()
{
return (IRRawPointerType*)getType(kIROp_RawPointerType);