diff options
| author | Yong He <yonghe@outlook.com> | 2018-02-22 15:08:47 -0500 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2018-02-22 15:09:50 -0500 |
| commit | ac1dfba8dd758febaf93f43e600d5542da6cd3e4 (patch) | |
| tree | e36f6af482f21889c1155d3a0fd37d318a36c88c /source/slang/ir.h | |
| parent | 7eaaf1aa1fdac3fd7ff7b64800a965a2b2c17f66 (diff) | |
Make `IRGlobalValue::mangledName` a `Name*`
This allows us to get rid of `IRGlobalValue::dispose()`.
Diffstat (limited to 'source/slang/ir.h')
| -rw-r--r-- | source/slang/ir.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source/slang/ir.h b/source/slang/ir.h index 3d4899824..8f350827a 100644 --- a/source/slang/ir.h +++ b/source/slang/ir.h @@ -20,7 +20,7 @@ class FuncType; class Layout; class Type; class Session; - +class Name; struct IRFunc; struct IRGlobalValueWithCode; struct IRInst; @@ -480,7 +480,7 @@ struct IRGlobalValue : IRValue // The mangled name, for a symbol that should have linkage, // or which might have multiple declarations. - String mangledName; + Name* mangledName = nullptr; IRGlobalValue* nextGlobalValue; @@ -500,11 +500,6 @@ struct IRGlobalValue : IRValue void removeFromParent(); void moveToEnd(); - virtual void dispose() override - { - IRValue::dispose(); - mangledName = String(); - } }; /// @brief A global value that potentially holds executable code. |
