Skip to content

Commit 4e165dd

Browse files
committed
[TableGen] Remove unused CodeGenHwModes argument from RegSizeInfo constructor. NFC
1 parent e1a8120 commit 4e165dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/utils/TableGen/InfoByHwMode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ ValueTypeByHwMode llvm::getValueTypeByHwMode(Record *Rec,
115115
return ValueTypeByHwMode(Rec, llvm::getValueType(Rec));
116116
}
117117

118-
RegSizeInfo::RegSizeInfo(Record *R, const CodeGenHwModes &CGH) {
118+
RegSizeInfo::RegSizeInfo(Record *R) {
119119
RegSize = R->getValueAsInt("RegSize");
120120
SpillSize = R->getValueAsInt("SpillSize");
121121
SpillAlignment = R->getValueAsInt("SpillAlignment");
@@ -139,7 +139,7 @@ void RegSizeInfo::writeToStream(raw_ostream &OS) const {
139139
RegSizeInfoByHwMode::RegSizeInfoByHwMode(Record *R, const CodeGenHwModes &CGH) {
140140
const HwModeSelect &MS = CGH.getHwModeSelect(R);
141141
for (const HwModeSelect::PairType &P : MS.Items) {
142-
auto I = Map.insert({P.first, RegSizeInfo(P.second, CGH)});
142+
auto I = Map.insert({P.first, RegSizeInfo(P.second)});
143143
assert(I.second && "Duplicate entry?");
144144
(void)I;
145145
}

llvm/utils/TableGen/InfoByHwMode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ struct RegSizeInfo {
181181
unsigned SpillSize;
182182
unsigned SpillAlignment;
183183

184-
RegSizeInfo(Record *R, const CodeGenHwModes &CGH);
184+
RegSizeInfo(Record *R);
185185
RegSizeInfo() = default;
186186
bool operator<(const RegSizeInfo &I) const;
187187
bool operator==(const RegSizeInfo &I) const {

0 commit comments

Comments
 (0)