Skip to content

Commit ff1de24

Browse files
[llvm-exegesis] Remove getter for RegNameToRegNo mapping
This patch removes the getter for the mentioned mapping. This was only kept around to keep things in sync for some downstream codebases (that didn't even end up needing it), so removing it now that it is not needed anymore.
1 parent a643836 commit ff1de24

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/tools/llvm-exegesis/lib/LlvmState.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,6 @@ class LLVMState {
7676
return *OpcodeNameToOpcodeIdxMapping;
7777
};
7878

79-
// TODO(boomanaiden154): We are keeping this getter around to enable internal
80-
// migration to getRegisterNumberFromName. Once that is complete and
81-
// the changes have been pulled, we can remove this.
82-
const DenseMap<StringRef, MCRegister> &getRegNameToRegNoMapping() const {
83-
assert(RegNameToRegNoMapping);
84-
return *RegNameToRegNoMapping;
85-
}
86-
8779
std::optional<MCRegister>
8880
getRegisterNumberFromName(StringRef RegisterName) const;
8981

0 commit comments

Comments
 (0)