mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
MC: Constify MCSubtargetInfo in getDeprecationInfo(), NFC
There's no reason to be able to mutate `MCSubtargetInfo` in `getDeprecationInfo()`. Constify the reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241693 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -154,7 +154,8 @@ public:
|
||||
|
||||
// A complex method to determine is a certain is deprecated or not, and return
|
||||
// the reason for deprecation.
|
||||
bool (*ComplexDeprecationInfo)(MCInst &, MCSubtargetInfo &, std::string &);
|
||||
bool (*ComplexDeprecationInfo)(MCInst &, const MCSubtargetInfo &,
|
||||
std::string &);
|
||||
|
||||
/// \brief Returns the value of the specific constraint if
|
||||
/// it is set. Returns -1 if it is not set.
|
||||
@@ -170,7 +171,7 @@ public:
|
||||
|
||||
/// \brief Returns true if a certain instruction is deprecated and if so
|
||||
/// returns the reason in \p Info.
|
||||
bool getDeprecatedInfo(MCInst &MI, MCSubtargetInfo &STI,
|
||||
bool getDeprecatedInfo(MCInst &MI, const MCSubtargetInfo &STI,
|
||||
std::string &Info) const;
|
||||
|
||||
/// \brief Return the opcode number for this descriptor.
|
||||
|
Reference in New Issue
Block a user