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/emit.cpp | |
| parent | 7eaaf1aa1fdac3fd7ff7b64800a965a2b2c17f66 (diff) | |
Make `IRGlobalValue::mangledName` a `Name*`
This allows us to get rid of `IRGlobalValue::dispose()`.
Diffstat (limited to 'source/slang/emit.cpp')
| -rw-r--r-- | source/slang/emit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp index 3fa50b928..79fd2b444 100644 --- a/source/slang/emit.cpp +++ b/source/slang/emit.cpp @@ -4584,8 +4584,8 @@ emitDeclImpl(decl, nullptr); case kIROp_Func: { auto& mangledName = ((IRGlobalValue*)inst)->mangledName; - if(mangledName.Length() != 0) - return mangledName; + if(getText(mangledName).Length() != 0) + return getText(mangledName); } break; @@ -5582,7 +5582,7 @@ emitDeclImpl(decl, nullptr); // be better strategies (including just stuffing // a pointer to the original decl onto the callee). - UnmangleContext um(func->mangledName); + UnmangleContext um(getText(func->mangledName)); um.startUnmangling(); // We'll read through the qualified name of the @@ -7679,7 +7679,7 @@ emitDeclImpl(decl, nullptr); // actually *require* redeclaration...). // // TODO: can we detect this more robustly? - if(varDecl->mangledName.StartsWith("gl_")) + if(getText(varDecl->mangledName).StartsWith("gl_")) { // The variable represents an OpenGL system value, // so we will assume that it doesn't need to be declared. |
