mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +00:00
revert patch, need to update clang tests too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112895 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
39653a4e6c
commit
7e5c1a9790
@ -1635,10 +1635,11 @@ void AssemblyWriter::printFunction(const Function *F) {
|
|||||||
if (F->hasGC())
|
if (F->hasGC())
|
||||||
Out << " gc \"" << F->getGC() << '"';
|
Out << " gc \"" << F->getGC() << '"';
|
||||||
if (F->isDeclaration()) {
|
if (F->isDeclaration()) {
|
||||||
Out << '\n';
|
Out << " ; [#uses=" << F->getNumUses() << "]\n"; // Output # uses
|
||||||
} else {
|
} else {
|
||||||
Out << " {";
|
Out << " { ; [#uses=" << F->getNumUses() << ']'; // Output # uses
|
||||||
// Output all of the function's basic blocks.
|
|
||||||
|
// Output all of its basic blocks... for the function
|
||||||
for (Function::const_iterator I = F->begin(), E = F->end(); I != E; ++I)
|
for (Function::const_iterator I = F->begin(), E = F->end(); I != E; ++I)
|
||||||
printBasicBlock(I);
|
printBasicBlock(I);
|
||||||
|
|
||||||
@ -1687,7 +1688,7 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
|
|||||||
Out.PadToColumn(50);
|
Out.PadToColumn(50);
|
||||||
Out << "; Error: Block without parent!";
|
Out << "; Error: Block without parent!";
|
||||||
} else if (BB != &BB->getParent()->getEntryBlock()) { // Not the entry block?
|
} else if (BB != &BB->getParent()->getEntryBlock()) { // Not the entry block?
|
||||||
// Output predecessors for the block.
|
// Output predecessors for the block...
|
||||||
Out.PadToColumn(50);
|
Out.PadToColumn(50);
|
||||||
Out << ";";
|
Out << ";";
|
||||||
const_pred_iterator PI = pred_begin(BB), PE = pred_end(BB);
|
const_pred_iterator PI = pred_begin(BB), PE = pred_end(BB);
|
||||||
@ -1725,6 +1726,13 @@ void AssemblyWriter::printInfoComment(const Value &V) {
|
|||||||
AnnotationWriter->printInfoComment(V, Out);
|
AnnotationWriter->printInfoComment(V, Out);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (V.getType()->isVoidTy()) return;
|
||||||
|
|
||||||
|
Out.PadToColumn(50);
|
||||||
|
Out << "; <";
|
||||||
|
TypePrinter.print(V.getType(), Out);
|
||||||
|
Out << "> [#uses=" << V.getNumUses() << ']'; // Output # uses
|
||||||
}
|
}
|
||||||
|
|
||||||
// This member is called for each Instruction in a function..
|
// This member is called for each Instruction in a function..
|
||||||
|
Loading…
x
Reference in New Issue
Block a user