mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
fix a bug introduced by Nicholas' "unwinds to" stuff: we
lost newlines between blocks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50024 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
281def9456
commit
96c5b2f8c7
@ -1164,7 +1164,7 @@ void AssemblyWriter::printArgument(const Argument *Arg,
|
||||
///
|
||||
void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
|
||||
if (BB->hasName()) // Print out the label if it exists...
|
||||
Out << getLLVMName(BB->getName(), LabelPrefix) << ':';
|
||||
Out << '\n' << getLLVMName(BB->getName(), LabelPrefix) << ':';
|
||||
|
||||
if (const BasicBlock* unwindDest = BB->getUnwindDest()) {
|
||||
if (BB->hasName())
|
||||
@ -1175,7 +1175,7 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
|
||||
}
|
||||
|
||||
if (!BB->hasName() && !BB->use_empty()) { // Don't print block # of no uses...
|
||||
Out << "; <label>:";
|
||||
Out << "\n; <label>:";
|
||||
int Slot = Machine.getLocalSlot(BB);
|
||||
if (Slot != -1)
|
||||
Out << Slot;
|
||||
|
Loading…
x
Reference in New Issue
Block a user