mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
use early exits to reduce indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92335 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1257,20 +1257,22 @@ private:
|
||||
void AssemblyWriter::writeOperand(const Value *Operand, bool PrintType) {
|
||||
if (Operand == 0) {
|
||||
Out << "<null operand!>";
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
if (PrintType) {
|
||||
TypePrinter.print(Operand->getType(), Out);
|
||||
Out << ' ';
|
||||
}
|
||||
WriteAsOperandInternal(Out, Operand, &TypePrinter, &Machine);
|
||||
}
|
||||
}
|
||||
|
||||
void AssemblyWriter::writeParamOperand(const Value *Operand,
|
||||
Attributes Attrs) {
|
||||
if (Operand == 0) {
|
||||
Out << "<null operand!>";
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
// Print the type
|
||||
TypePrinter.print(Operand->getType(), Out);
|
||||
// Print parameter attributes list
|
||||
@@ -1280,7 +1282,6 @@ void AssemblyWriter::writeParamOperand(const Value *Operand,
|
||||
// Print the operand
|
||||
WriteAsOperandInternal(Out, Operand, &TypePrinter, &Machine);
|
||||
}
|
||||
}
|
||||
|
||||
void AssemblyWriter::printModule(const Module *M) {
|
||||
if (!M->getModuleIdentifier().empty() &&
|
||||
|
Reference in New Issue
Block a user