llvm.org GIT mirror llvm / 5bd1b81
Remove trailing whitespace and some tab characters. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187472 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 7 years ago
1 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
4949 // Try to print any aliases first.
5050 if (!printAliasInstr(MI, OS))
5151 printInstruction(MI, OS);
52
52
5353 // Next always print the annotation.
5454 printAnnotation(OS, Annot);
5555
158158 O << markup("
159159 << '$' << formatImm((int64_t)Op.getImm())
160160 << markup(">");
161
161
162162 if (CommentStream && (Op.getImm() > 255 || Op.getImm() < -256))
163163 *CommentStream << format("imm = 0x%" PRIX64 "\n", (uint64_t)Op.getImm());
164
164
165165 } else {
166166 assert(Op.isExpr() && "unknown operand kind in printOperand");
167167 O << markup("
176176 const MCOperand &IndexReg = MI->getOperand(Op+2);
177177 const MCOperand &DispSpec = MI->getOperand(Op+3);
178178 const MCOperand &SegReg = MI->getOperand(Op+4);
179
179
180180 O << markup("
181181
182182 // If this has a segment register, print it.
184184 printOperand(MI, Op+4, O);
185185 O << ':';
186186 }
187
187
188188 if (DispSpec.isImm()) {
189189 int64_t DispVal = DispSpec.getImm();
190190 if (DispVal || (!IndexReg.getReg() && !BaseReg.getReg()))
193193 assert(DispSpec.isExpr() && "non-immediate displacement for LEA?");
194194 O << *DispSpec.getExpr();
195195 }
196
196
197197 if (IndexReg.getReg() || BaseReg.getReg()) {
198198 O << '(';
199199 if (BaseReg.getReg())
200200 printOperand(MI, Op, O);
201
201
202202 if (IndexReg.getReg()) {
203203 O << ',';
204204 printOperand(MI, Op+2, O);
205205 unsigned ScaleVal = MI->getOperand(Op+1).getImm();
206206 if (ScaleVal != 1) {
207207 O << ','
208 << markup("
208 << markup("
209209 << ScaleVal // never printed in hex.
210 << markup(">");
210 << markup(">");
211211 }
212212 }
213213 O << ')';