mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
fix a bug introduced by Nicholas' "unwinds to" stuff: we
lost newlines between blocks. llvm-svn: 50024
This commit is contained in:
parent
ca82082080
commit
26468c09af
@ -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…
Reference in New Issue
Block a user