Commit 519cf22b by Nicolas Capens Committed by Nicolas Capens

Rename Reactor static getType() methods to type()

This is just a refactoring which will allow adding a virtual getType() method in a subsequent change without overload naming conflicts. 'isVoid()' has been removed since it appears unused now. Bug: b/155302798 Change-Id: I16f5cbd947da9581e0f20837497f6b61cfeb7a21 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/45008 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com>
parent 57eb48ae
......@@ -157,16 +157,16 @@ Coroutine<Return(Arguments...)>::Coroutine()
{
core.reset(new Nucleus());
std::vector<Type *> types = { CToReactorT<Arguments>::getType()... };
std::vector<Type *> types = { CToReactorT<Arguments>::type()... };
for(auto type : types)
{
if(type != Void::getType())
if(type != Void::type())
{
arguments.push_back(type);
}
}
Nucleus::createCoroutine(CToReactorT<Return>::getType(), arguments);
Nucleus::createCoroutine(CToReactorT<Return>::type(), arguments);
}
template<typename Return, typename... Arguments>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment