1a2,13
> * Copyright (c) 2019 Arm Limited
> * All rights reserved.
> *
> * The license below extends only to copyright in the software and shall
> * not be construed as granting a license to any other intellectual
> * property including but not limited to intellectual property relating
> * to a hardware implementation of the functionality of the software
> * licensed hereunder. You may use the software subject to the license
> * terms below provided that you ensure that this notice is replicated
> * unmodified and in its entirety in all distributions of the software,
> * modified or unmodified, in source code or in binary form.
> *
155a168,193
> std::string
> Text::statName(const std::string &name) const
> {
> if (path.empty())
> return name;
> else
> return csprintf("%s.%s", path.top(), name);
> }
>
> void
> Text::beginGroup(const char *name)
> {
> if (path.empty()) {
> path.push(name);
> } else {
> path.push(csprintf("%s.%s", path.top(), name));
> }
> }
>
> void
> Text::endGroup()
> {
> assert(!path.empty());
> path.pop();
> }
>
371c409
< name = info.name;
---
> name = text->statName(info.name);
514c552
< print.name = info.name;
---
> print.name = statName(info.name);
534c572
< print.name = info.name;
---
> print.name = statName(info.name);
609,610c647,649
< print.name = info.name + "_" +
< (havesub ? info.subnames[i] : std::to_string(i));
---
> print.name = statName(
> info.name + "_" +
> (havesub ? info.subnames[i] : std::to_string(i)));
622c661
< print.name = info.name;
---
> print.name = statName(info.name);
690c729
< name = info.name;
---
> name = text->statName(info.name);