mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
shoot a few more std::ostream print methods in the head.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79814 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include <limits>
|
||||
using namespace llvm;
|
||||
@ -53,14 +54,16 @@ bool LiveStacks::runOnMachineFunction(MachineFunction &) {
|
||||
|
||||
/// print - Implement the dump method.
|
||||
void LiveStacks::print(std::ostream &O, const Module*) const {
|
||||
O << "********** INTERVALS **********\n";
|
||||
raw_os_ostream OS(O);
|
||||
|
||||
OS << "********** INTERVALS **********\n";
|
||||
for (const_iterator I = begin(), E = end(); I != E; ++I) {
|
||||
I->second.print(O);
|
||||
I->second.print(OS);
|
||||
int Slot = I->first;
|
||||
const TargetRegisterClass *RC = getIntervalRegClass(Slot);
|
||||
if (RC)
|
||||
O << " [" << RC->getName() << "]\n";
|
||||
OS << " [" << RC->getName() << "]\n";
|
||||
else
|
||||
O << " [Unknown]\n";
|
||||
OS << " [Unknown]\n";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user