summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-02-16 04:24:56 +0000
committerCraig Topper <craig.topper@gmail.com>2016-02-16 04:24:56 +0000
commit983be941bfdd4e6062982917020205884516288f (patch)
tree3742abea6cf52ce08a9f3fcf392abaedb40b9c3a
parentb89d189d3753680faa81dc12a7b1587b919d74b4 (diff)
downloadbcm5719-llvm-983be941bfdd4e6062982917020205884516288f.tar.gz
bcm5719-llvm-983be941bfdd4e6062982917020205884516288f.zip
[TableGen] Stop passing by reference an integer that doesn't get modified. NFC
llvm-svn: 260934
-rw-r--r--llvm/utils/TableGen/X86RecognizableInstr.cpp2
-rw-r--r--llvm/utils/TableGen/X86RecognizableInstr.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/X86RecognizableInstr.cpp b/llvm/utils/TableGen/X86RecognizableInstr.cpp
index 503ba84cf93..a41d247edca 100644
--- a/llvm/utils/TableGen/X86RecognizableInstr.cpp
+++ b/llvm/utils/TableGen/X86RecognizableInstr.cpp
@@ -476,7 +476,7 @@ void RecognizableInstr::adjustOperandEncoding(OperandEncoding &encoding) {
void RecognizableInstr::handleOperand(bool optional, unsigned &operandIndex,
unsigned &physicalOperandIndex,
- unsigned &numPhysicalOperands,
+ unsigned numPhysicalOperands,
const unsigned *operandMapping,
OperandEncoding (*encodingFromString)
(const std::string&,
diff --git a/llvm/utils/TableGen/X86RecognizableInstr.h b/llvm/utils/TableGen/X86RecognizableInstr.h
index 10bc315af87..d25eeea5018 100644
--- a/llvm/utils/TableGen/X86RecognizableInstr.h
+++ b/llvm/utils/TableGen/X86RecognizableInstr.h
@@ -177,7 +177,7 @@ private:
void handleOperand(bool optional,
unsigned &operandIndex,
unsigned &physicalOperandIndex,
- unsigned &numPhysicalOperands,
+ unsigned numPhysicalOperands,
const unsigned *operandMapping,
OperandEncoding (*encodingFromString)
(const std::string&,
OpenPOWER on IntegriCloud