diff options
| author | Yong He <yonghe@outlook.com> | 2020-06-25 13:19:45 -0700 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2020-06-25 13:23:28 -0700 |
| commit | a1fed5e49bc1c8452752d13d401ee0bbbc5c71c4 (patch) | |
| tree | 03e54a0d33caf5196416315489a8d01b973c7a5e /source/slang/slang-ir.cpp | |
| parent | ffa9a3575ff888dc494ba4878f52441c64a9e08c (diff) | |
Partial fixes to code review comments
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 20 |
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>( |
