clean up some syntax.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75532 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-07-13 22:28:21 +00:00
parent 709b33dc78
commit e2959dc2b1

View File

@ -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,6 +366,7 @@ void X86ATTAsmPrinter::printSymbolOperand(const MachineOperand &MO) {
O << ')';
break;
}
}
switch (MO.getTargetFlags()) {
default: