summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-string-hash.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-02-16 16:44:04 -0800
committerGitHub <noreply@github.com>2023-02-16 16:44:04 -0800
commit245466d89cfe54b78da486f06d470bc6daaf4625 (patch)
tree522e0af1a9d2756182e143cdc85031ea1bbc2aa0 /source/slang/slang-ir-string-hash.cpp
parent4c4826d47eeef4675daae4ae53ff76f4d5ebd84a (diff)
Remove `SharedIRBuilder`. (#2657)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-string-hash.cpp')
-rw-r--r--source/slang/slang-ir-string-hash.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/slang/slang-ir-string-hash.cpp b/source/slang/slang-ir-string-hash.cpp
index 8bccb97db..b7e37d21e 100644
--- a/source/slang/slang-ir-string-hash.cpp
+++ b/source/slang/slang-ir-string-hash.cpp
@@ -41,7 +41,7 @@ void findGlobalHashedStringLiterals(IRModule* module, StringSlicePool& pool)
}
}
-void addGlobalHashedStringLiterals(const StringSlicePool& pool, SharedIRBuilder& sharedBuilder)
+void addGlobalHashedStringLiterals(const StringSlicePool& pool, IRModule* module)
{
auto slices = pool.getAdded();
if (slices.getCount() == 0)
@@ -49,11 +49,8 @@ void addGlobalHashedStringLiterals(const StringSlicePool& pool, SharedIRBuilder&
return;
}
- IRBuilder builder(sharedBuilder);
+ IRBuilder builder(module);
- //
- IRModule* module = builder.getModule();
-
// We need to add a global instruction that references all of these string literals
builder.setInsertInto(module->getModuleInst());