| Index: src/PNaClTranslator.cpp
|
| diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp
|
| index 4aef2441742b42ce4129be856e45564e85109de0..0a8e52afc2e4436c82a8e507e0027c91ca410606 100644
|
| --- a/src/PNaClTranslator.cpp
|
| +++ b/src/PNaClTranslator.cpp
|
| @@ -477,7 +477,14 @@ private:
|
| Prefix);
|
| } else {
|
| Ice::GlobalContext *Ctx = Translator.getContext();
|
| - if (Ice::BuildDefs::dump() || !Decl->isInternal()) {
|
| + // Synthesize a dummy name if any of the following is true:
|
| + // - DUMP is enabled
|
| + // - The symbol is external
|
| + // - The -timing-funcs flag is enabled
|
| + // - The -timing-focus flag is enabled
|
| + if (Ice::BuildDefs::dump() || !Decl->isInternal() ||
|
| + Ice::getFlags().getTimeEachFunction() ||
|
| + !Ice::getFlags().getTimingFocusOn().empty()) {
|
| Decl->setName(Ctx, Translator.createUnnamedName(Prefix, NameIndex));
|
| } else {
|
| Decl->setName(Ctx);
|
|
|