summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCInstrDesc.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-07-08 17:30:55 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-07-08 17:30:55 +0000
commitad987455619bac39bdc7acd51ab108d42c63da33 (patch)
treec8fa411ba770a6bf3f50fe4a5255fcd158dfd8b4 /llvm/lib/MC/MCInstrDesc.cpp
parent65a9953d691f603828df58208a1a9fd23aa9a6a9 (diff)
downloadbcm5719-llvm-ad987455619bac39bdc7acd51ab108d42c63da33.tar.gz
bcm5719-llvm-ad987455619bac39bdc7acd51ab108d42c63da33.zip
MC: Constify MCSubtargetInfo in getDeprecationInfo(), NFC
There's no reason to be able to mutate `MCSubtargetInfo` in `getDeprecationInfo()`. Constify the reference. llvm-svn: 241693
Diffstat (limited to 'llvm/lib/MC/MCInstrDesc.cpp')
-rw-r--r--llvm/lib/MC/MCInstrDesc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCInstrDesc.cpp b/llvm/lib/MC/MCInstrDesc.cpp
index decc2d84b25..5be2fa1b30b 100644
--- a/llvm/lib/MC/MCInstrDesc.cpp
+++ b/llvm/lib/MC/MCInstrDesc.cpp
@@ -19,7 +19,7 @@
using namespace llvm;
-bool MCInstrDesc::getDeprecatedInfo(MCInst &MI, MCSubtargetInfo &STI,
+bool MCInstrDesc::getDeprecatedInfo(MCInst &MI, const MCSubtargetInfo &STI,
std::string &Info) const {
if (ComplexDeprecationInfo)
return ComplexDeprecationInfo(MI, STI, Info);
OpenPOWER on IntegriCloud