projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
895dda6
)
Handle the odd case where we only have one instruction.
author
Eric Christopher
<echristo@apple.com>
Sat, 18 Sep 2010 18:50:27 +0000
(18:50 +0000)
committer
Eric Christopher
<echristo@apple.com>
Sat, 18 Sep 2010 18:50:27 +0000
(18:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114293
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/AsmWriterEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/AsmWriterEmitter.cpp
b/utils/TableGen/AsmWriterEmitter.cpp
index 23f13c2ae2d492526e8f769695c5a3bb5fbebc34..44622e937dadba58f75d3912ac1a3323c673d802 100644
(file)
--- a/
utils/TableGen/AsmWriterEmitter.cpp
+++ b/
utils/TableGen/AsmWriterEmitter.cpp
@@
-403,6
+403,9
@@
void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) {
<< " } else {\n"
<< Commands[0]
<< " }\n\n";
+ } else if (Commands.size() == 1) {
+ // Emit a single possibility.
+ O << Commands[0] << "\n\n";
} else {
O << " switch ((Bits >> " << (BitsLeft+AsmStrBits) << ") & "
<< ((1 << NumBits)-1) << ") {\n"