diff --git a/llvm/utils/TableGen/SubtargetFeatureInfo.cpp b/llvm/utils/TableGen/SubtargetFeatureInfo.cpp index 1db8c0bf430a7..15144e821965a 100644 --- a/llvm/utils/TableGen/SubtargetFeatureInfo.cpp +++ b/llvm/utils/TableGen/SubtargetFeatureInfo.cpp @@ -47,7 +47,7 @@ SubtargetFeatureInfo::getAll(const RecordKeeper &Records) { } void SubtargetFeatureInfo::emitSubtargetFeatureBitEnumeration( - SubtargetFeatureInfoMap &SubtargetFeatures, raw_ostream &OS) { + const SubtargetFeatureInfoMap &SubtargetFeatures, raw_ostream &OS) { OS << "// Bits for subtarget features that participate in " << "instruction matching.\n"; OS << "enum SubtargetFeatureBits : " diff --git a/llvm/utils/TableGen/SubtargetFeatureInfo.h b/llvm/utils/TableGen/SubtargetFeatureInfo.h index 77703e8a87f85..6c9dd6c3ad228 100644 --- a/llvm/utils/TableGen/SubtargetFeatureInfo.h +++ b/llvm/utils/TableGen/SubtargetFeatureInfo.h @@ -54,9 +54,8 @@ struct SubtargetFeatureInfo { /// /// This version emits the bit index for the feature and can therefore support /// more than 64 feature bits. - static void - emitSubtargetFeatureBitEnumeration(SubtargetFeatureInfoMap &SubtargetFeatures, - raw_ostream &OS); + static void emitSubtargetFeatureBitEnumeration( + const SubtargetFeatureInfoMap &SubtargetFeatures, raw_ostream &OS); static void emitNameTable(SubtargetFeatureInfoMap &SubtargetFeatures, raw_ostream &OS);