Change routine names to be strings of char
Routine names were passed as wide strings for the integration with
CodeAnalyst, which no longer exists.
- Rip out the remnants of the CodeAnalyst support
- Change Reactor interface to take routine names as const char *
Bug: b/123193048
Change-Id: I919ce3a55c59c3a08057f85cac994fbffad37614
Reviewed-on: https://swiftshader-review.googlesource.com/c/23908
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Chris Forbes <chrisforbes@google.com>
diff --git a/src/Reactor/SubzeroReactor.cpp b/src/Reactor/SubzeroReactor.cpp
index 083576e..7048640 100644
--- a/src/Reactor/SubzeroReactor.cpp
+++ b/src/Reactor/SubzeroReactor.cpp
@@ -578,16 +578,14 @@
::codegenMutex.unlock();
}
- Routine *Nucleus::acquireRoutine(const wchar_t *name, bool runOptimizations)
+ Routine *Nucleus::acquireRoutine(const char *name, bool runOptimizations)
{
if(basicBlock->getInsts().empty() || basicBlock->getInsts().back().getKind() != Ice::Inst::Ret)
{
createRetVoid();
}
- std::wstring wideName(name);
- std::string asciiName(wideName.begin(), wideName.end());
- ::function->setFunctionName(Ice::GlobalString::createWithString(::context, asciiName));
+ ::function->setFunctionName(Ice::GlobalString::createWithString(::context, name));
optimize();