summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/MCAsmParser.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-10-22 22:29:09 +0000
committerReid Kleckner <rnk@google.com>2018-10-22 22:29:09 +0000
commit3d5c2e648cda5d333e794f9cf3b83c787627027b (patch)
tree6cf2c61f5645f1592dbc5726fc7ff3876bd8854f /llvm/lib/MC/MCParser/MCAsmParser.cpp
parent8c3d87b8cf983c8b5a09621f27fd3c793ec75596 (diff)
downloadbcm5719-llvm-3d5c2e648cda5d333e794f9cf3b83c787627027b.tar.gz
bcm5719-llvm-3d5c2e648cda5d333e794f9cf3b83c787627027b.zip
[MC] Shrink MCAsmParser by grouping bools, add const, NFC
I was considering adding another boolean here. I standardized on bools since they allow default member initializers in the class definition. This makes ShowParsedOperands protected instead of private, but that's probably fine. Reduce the SmallVector size while we're at it, since the common case is that there is never a pending error. llvm-svn: 344967
Diffstat (limited to 'llvm/lib/MC/MCParser/MCAsmParser.cpp')
-rw-r--r--llvm/lib/MC/MCParser/MCAsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCParser/MCAsmParser.cpp b/llvm/lib/MC/MCParser/MCAsmParser.cpp
index d439734e76f..efedcdc5a31 100644
--- a/llvm/lib/MC/MCParser/MCAsmParser.cpp
+++ b/llvm/lib/MC/MCParser/MCAsmParser.cpp
@@ -21,7 +21,7 @@
using namespace llvm;
-MCAsmParser::MCAsmParser() : ShowParsedOperands(0) {}
+MCAsmParser::MCAsmParser() {}
MCAsmParser::~MCAsmParser() = default;
OpenPOWER on IntegriCloud