[MC][TableGen] Fix r329675.

Caught by bots with -Wmissing-braces.

llvm-svn: 329676
This commit is contained in:
Clement Courbet 2018-04-10 08:43:46 +00:00
parent b449379eae
commit bfa20dddcb
1 changed files with 6 additions and 4 deletions

View File

@ -724,18 +724,20 @@ static bool EmitPfmIssueCountersTable(const CodeGenProcModel &ProcModel,
static void EmitPfmCounters(const CodeGenProcModel &ProcModel,
const bool HasPfmIssueCounters, raw_ostream &OS) {
OS << " {\n";
// Emit the cycle counter.
if (ProcModel.PfmCycleCounterDef)
OS << " \"" << ProcModel.PfmCycleCounterDef->getValueAsString("Counter")
OS << " \"" << ProcModel.PfmCycleCounterDef->getValueAsString("Counter")
<< "\", // Cycle counter.\n";
else
OS << " nullptr, // No cycle counter.\n";
OS << " nullptr, // No cycle counter.\n";
// Emit a reference to issue counters table.
if (HasPfmIssueCounters)
OS << " " << ProcModel.ModelName << "PfmIssueCounters\n";
OS << " " << ProcModel.ModelName << "PfmIssueCounters\n";
else
OS << " nullptr, // No issue counters.\n";
OS << " nullptr // No issue counters.\n";
OS << " }\n";
}
void SubtargetEmitter::EmitExtraProcessorInfo(const CodeGenProcModel &ProcModel,