diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index 00a9a1e9bd1..c3bd8b40543 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -55,7 +55,7 @@ void X86ATTAsmPrinter::PrintPICBaseSymbol() const { else if (Subtarget->isTargetELF()) O << ".Lllvm$" << getFunctionNumber() << ".$piclabel"; else - LLVM_UNREACHABLE( "Don't know how to print PIC label!"); + LLVM_UNREACHABLE("Don't know how to print PIC label!"); } /// PrintUnmangledNameSafely - Print out the printable characters in the name. @@ -155,7 +155,7 @@ void X86ATTAsmPrinter::decorateName(std::string &Name, } break; default: - LLVM_UNREACHABLE( "Unsupported DecorationStyle"); + LLVM_UNREACHABLE("Unsupported DecorationStyle"); } } @@ -167,7 +167,7 @@ void X86ATTAsmPrinter::emitFunctionHeader(const MachineFunction &MF) { SwitchToSection(TAI->SectionForGlobal(F)); switch (F->getLinkage()) { - default: LLVM_UNREACHABLE( "Unknown linkage type!"); + default: LLVM_UNREACHABLE("Unknown linkage type!"); case Function::InternalLinkage: // Symbols default to internal. case Function::PrivateLinkage: EmitAlignment(FnAlign, F); @@ -293,17 +293,15 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) { void X86ATTAsmPrinter::printSymbolOperand(const MachineOperand &MO) { switch (MO.getType()) { default: LLVM_UNREACHABLE("unknown symbol type!"); - case MachineOperand::MO_JumpTableIndex: { + case MachineOperand::MO_JumpTableIndex: O << TAI->getPrivateGlobalPrefix() << "JTI" << getFunctionNumber() << '_' << MO.getIndex(); break; - } - case MachineOperand::MO_ConstantPoolIndex: { + case MachineOperand::MO_ConstantPoolIndex: O << TAI->getPrivateGlobalPrefix() << "CPI" << getFunctionNumber() << '_' << MO.getIndex(); printOffset(MO.getOffset()); break; - } case MachineOperand::MO_GlobalAddress: { const GlobalValue *GV = MO.getGlobal(); std::string Name = Mang->getValueName(GV); @@ -345,7 +343,7 @@ void X86ATTAsmPrinter::printSymbolOperand(const MachineOperand &MO) { printOffset(MO.getOffset()); break; } - case MachineOperand::MO_ExternalSymbol: + case MachineOperand::MO_ExternalSymbol: { bool needCloseParen = false; std::string Name(TAI->getGlobalPrefix()); Name += MO.getSymbolName(); @@ -368,10 +366,11 @@ void X86ATTAsmPrinter::printSymbolOperand(const MachineOperand &MO) { O << ')'; break; } + } switch (MO.getTargetFlags()) { default: - LLVM_UNREACHABLE( "Unknown target flag on GV operand"); + LLVM_UNREACHABLE("Unknown target flag on GV operand"); case X86II::MO_NO_FLAG: // No flag. break; case X86II::MO_DARWIN_NONLAZY: @@ -409,7 +408,7 @@ void X86ATTAsmPrinter::printSymbolOperand(const MachineOperand &MO) { void X86ATTAsmPrinter::print_pcrel_imm(const MachineInstr *MI, unsigned OpNo) { const MachineOperand &MO = MI->getOperand(OpNo); switch (MO.getType()) { - default: LLVM_UNREACHABLE( "Unknown pcrel immediate operand"); + default: LLVM_UNREACHABLE("Unknown pcrel immediate operand"); case MachineOperand::MO_Immediate: O << MO.getImm(); return; @@ -740,7 +739,7 @@ void X86ATTAsmPrinter::printMachineInstruction(const MachineInstr *MI) { } else if (MO.isMBB()) { MCOp.MakeMBBLabel(getFunctionNumber(), MO.getMBB()->getNumber()); } else { - LLVM_UNREACHABLE( "Unimp"); + LLVM_UNREACHABLE("Unimp"); } TmpInst.addOperand(MCOp); @@ -892,7 +891,7 @@ void X86ATTAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) { case GlobalValue::InternalLinkage: break; default: - LLVM_UNREACHABLE( "Unknown linkage type!"); + LLVM_UNREACHABLE("Unknown linkage type!"); } EmitAlignment(Align, GVar);