projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARM let processInstruction() tranforms chain.
[oota-llvm.git]
/
lib
/
Analysis
/
Trace.cpp
diff --git
a/lib/Analysis/Trace.cpp
b/lib/Analysis/Trace.cpp
index 3e3b1b938b0f30cb605d0fb8bde551a192903440..68a39cd581f43c560035ffe977413ebcaad4c2dd 100644
(file)
--- a/
lib/Analysis/Trace.cpp
+++ b/
lib/Analysis/Trace.cpp
@@
-2,8
+2,8
@@
//
// The LLVM Compiler Infrastructure
//
//
// The LLVM Compiler Infrastructure
//
-// This file
was developed by the LLVM research group and is distributed under
-//
the University of Illinois Open Source
License. See LICENSE.TXT for details.
+// This file
is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//
//
@@
-18,7
+18,8
@@
#include "llvm/Analysis/Trace.h"
#include "llvm/Function.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Analysis/Trace.h"
#include "llvm/Function.h"
#include "llvm/Assembly/Writer.h"
-#include "llvm/Support/Streams.h"
+#include "llvm/Support/Debug.h"
+#include "llvm/Support/raw_ostream.h"
using namespace llvm;
Function *Trace::getFunction() const {
using namespace llvm;
Function *Trace::getFunction() const {
@@
-31,9
+32,9
@@
Module *Trace::getModule() const {
/// print - Write trace to output stream.
///
/// print - Write trace to output stream.
///
-void Trace::print(
std::
ostream &O) const {
- Function *F = getFunction
();
- O << "; Trace from function " << F->getName() << ", blocks:\n";
+void Trace::print(
raw_
ostream &O) const {
+ Function *F = getFunction();
+ O << "; Trace from function " << F->getName
Str
() << ", blocks:\n";
for (const_iterator i = begin(), e = end(); i != e; ++i) {
O << "; ";
WriteAsOperand(O, *i, true, getModule());
for (const_iterator i = begin(), e = end(); i != e; ++i) {
O << "; ";
WriteAsOperand(O, *i, true, getModule());
@@
-46,5
+47,5
@@
void Trace::print(std::ostream &O) const {
/// output stream.
///
void Trace::dump() const {
/// output stream.
///
void Trace::dump() const {
- print(
cerr
);
+ print(
dbgs()
);
}
}