def :MnemonicAlias<"InstB", "BInst">;
// Check that the matcher lower()s the mnemonics it matches.
-// MATCHER: static const char *const MnemonicTable =
+// MATCHER: static const char MnemonicTable[] =
// MATCHER-NEXT: "\005ainst\005binst";
// Check that aInst appears before BInst in the match table.
// NAMESPACE-NEXT: } // end namespace TestNamespace
// CHECK-LABEL: getRegPressureSetName(unsigned Idx) const {
-// CHECK-NEXT: static const char *const PressureNameTable[] = {
+// CHECK-NEXT: static const char *PressureNameTable[] = {
// CHECK-NEXT: "D_32",
// CHECK-NEXT: };
// CHECK-NEXT: return PressureNameTable[Idx];
def X0 : Register <"x0">;
// CHECK-LABEL: getRegPressureSetName(unsigned Idx) const {
-// CHECK-NEXT: static const char *const PressureNameTable[] = {
+// CHECK-NEXT: static const char *PressureNameTable[] = {
// CHECK-NEXT: "GPR32",
// CHECK-NEXT: };
// CHECK-NEXT: return PressureNameTable[Idx];
StringTable.GetOrAddStringOffset(LenMnemonic, false));
}
- OS << "static const char *const MnemonicTable =\n";
+ OS << "static const char MnemonicTable[] =\n";
StringTable.EmitString(OS);
OS << ";\n\n";
return I->second.get();
}
-static const char *const FixedInstrs[] = {
+static const char *FixedInstrs[] = {
#define HANDLE_TARGET_OPCODE(OPC) #OPC,
#include "llvm/Support/TargetOpcodes.def"
nullptr};
OS << "// Get the name of this register unit pressure set.\n"
<< "const char *" << ClassName << "::\n"
<< "getRegPressureSetName(unsigned Idx) const {\n"
- << " static const char *const PressureNameTable[] = {\n";
+ << " static const char *PressureNameTable[] = {\n";
unsigned MaxRegUnitWeight = 0;
for (unsigned i = 0; i < NumSets; ++i ) {
const RegUnitSet &RegUnits = RegBank.getRegSetAt(i);
OS << "};\n";
// Emit SubRegIndex names, skipping 0.
- OS << "\nstatic const char *const SubRegIndexNameTable[] = { \"";
+ OS << "\nstatic const char *SubRegIndexNameTable[] = { \"";
for (const auto &Idx : SubRegIndices) {
OS << Idx.getName();
OS << "ArrayRef<const char *> " << ClassName
<< "::getRegMaskNames() const {\n";
if (!CSRSets.empty()) {
- OS << " static const char *const Names[] = {\n";
+ OS << " static const char *Names[] = {\n";
for (Record *CSRSet : CSRSets)
OS << " " << '"' << CSRSet->getName() << '"' << ",\n";
OS << " };\n";