aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-12-07 01:30:32 +0000
committerBill Wendling <isanbard@gmail.com>2006-12-07 01:30:32 +0000
commite81561909d128c6e2d8033cb5465a49b2596b26a (patch)
tree6f2845604d482bc86d8d12aae500292c561d8cd7
parent85c671b90870705ba7e10baf99aa306c843f1325 (diff)
Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32298 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--examples/ModuleMaker/ModuleMaker.cpp2
-rw-r--r--include/llvm/ADT/BitSetVector.h10
-rw-r--r--include/llvm/ADT/EquivalenceClasses.h4
-rw-r--r--include/llvm/Analysis/AliasSetTracker.h8
-rw-r--r--include/llvm/Analysis/CallGraph.h4
-rw-r--r--include/llvm/Analysis/DataStructure/DSGraph.h4
-rw-r--r--include/llvm/Analysis/DataStructure/DSNode.h2
-rw-r--r--include/llvm/Analysis/LoopInfo.h4
-rw-r--r--include/llvm/Analysis/ScalarEvolution.h8
-rw-r--r--include/llvm/Analysis/Trace.h4
-rw-r--r--include/llvm/Assembly/PrintModulePass.h18
-rw-r--r--include/llvm/Bytecode/WriteBytecodePass.h9
-rw-r--r--include/llvm/Bytecode/Writer.h5
-rw-r--r--include/llvm/CodeGen/LiveInterval.h8
-rw-r--r--include/llvm/CodeGen/MachineBasicBlock.h4
-rw-r--r--include/llvm/CodeGen/MachineConstantPool.h8
-rw-r--r--include/llvm/CodeGen/MachineInstr.h6
-rw-r--r--include/llvm/CodeGen/SchedGraphCommon.h10
-rw-r--r--include/llvm/Module.h4
-rw-r--r--include/llvm/Pass.h2
-rw-r--r--include/llvm/Support/Casting.h4
-rw-r--r--include/llvm/Support/ConstantRange.h2
-rw-r--r--include/llvm/Support/Debug.h4
-rw-r--r--include/llvm/Support/GraphWriter.h10
-rw-r--r--include/llvm/Support/PassNameParser.h4
-rw-r--r--include/llvm/Support/Streams.h54
-rw-r--r--include/llvm/Type.h2
-rw-r--r--include/llvm/Value.h2
-rw-r--r--lib/Analysis/AliasAnalysisCounter.cpp38
-rw-r--r--lib/Analysis/AliasAnalysisEvaluator.cpp52
-rw-r--r--lib/Analysis/AliasSetTracker.cpp6
-rw-r--r--lib/Analysis/BasicAliasAnalysis.cpp4
-rw-r--r--lib/Analysis/CFGPrinter.cpp6
-rw-r--r--lib/Analysis/ConstantRange.cpp2
-rw-r--r--lib/Analysis/DataStructure/BottomUpClosure.cpp24
-rw-r--r--lib/Analysis/DataStructure/CallTargets.cpp14
-rw-r--r--lib/Analysis/DataStructure/DataStructure.cpp3
-rw-r--r--lib/Analysis/DataStructure/DataStructureStats.cpp12
-rw-r--r--lib/Analysis/DataStructure/EquivClassGraphs.cpp2
-rw-r--r--lib/Analysis/DataStructure/GraphChecker.cpp32
-rw-r--r--lib/Analysis/DataStructure/Local.cpp4
-rw-r--r--lib/Analysis/DataStructure/Printer.cpp2
-rw-r--r--lib/Analysis/DataStructure/Steensgaard.cpp2
-rw-r--r--lib/Analysis/IPA/Andersens.cpp48
-rw-r--r--lib/Analysis/IPA/CallGraph.cpp8
-rw-r--r--lib/Analysis/InstCount.cpp2
-rw-r--r--lib/Analysis/LoopInfo.cpp2
-rw-r--r--lib/Analysis/ProfileInfoLoader.cpp29
-rw-r--r--lib/Analysis/ProfileInfoLoaderPass.cpp4
-rw-r--r--lib/Analysis/ScalarEvolution.cpp34
-rw-r--r--lib/Analysis/ScalarEvolutionExpander.cpp5
-rw-r--r--lib/Analysis/Trace.cpp5
-rw-r--r--lib/AsmParser/llvmAsmParser.cpp.cvs2048
-rw-r--r--lib/AsmParser/llvmAsmParser.h.cvs40
-rw-r--r--lib/AsmParser/llvmAsmParser.y6
-rw-r--r--lib/AsmParser/llvmAsmParser.y.cvs6
-rw-r--r--lib/Bytecode/Writer/SlotCalculator.cpp2
-rw-r--r--lib/Bytecode/Writer/Writer.cpp12
-rw-r--r--lib/CodeGen/AsmPrinter.cpp37
-rw-r--r--lib/CodeGen/DwarfWriter.cpp16
-rw-r--r--lib/CodeGen/ELFWriter.cpp7
-rw-r--r--lib/CodeGen/IntrinsicLowering.cpp24
-rw-r--r--lib/CodeGen/LiveInterval.cpp7
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp4
-rw-r--r--lib/CodeGen/MachineInstr.cpp3
-rw-r--r--lib/CodeGen/VirtRegMap.cpp6
-rw-r--r--lib/CodeGen/VirtRegMap.h4
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp18
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp57
-rw-r--r--lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp14
-rw-r--r--lib/Linker/LinkModules.cpp17
-rw-r--r--lib/Linker/Linker.cpp6
-rw-r--r--lib/Support/Allocator.cpp4
-rw-r--r--lib/Support/CommandLine.cpp94
-rw-r--r--lib/Support/ConstantRange.cpp2
-rw-r--r--lib/Support/Debug.cpp6
-rw-r--r--lib/Support/GraphWriter.cpp16
-rw-r--r--lib/Support/PluginLoader.cpp4
-rw-r--r--lib/Support/SlowOperationInformer.cpp8
-rw-r--r--lib/Support/Streams.cpp7
-rw-r--r--lib/Support/SystemUtils.cpp8
-rw-r--r--lib/Transforms/ExprTypeConvert.cpp4
-rw-r--r--lib/Transforms/Hello/Hello.cpp4
-rw-r--r--lib/Transforms/IPO/GlobalOpt.cpp36
-rw-r--r--lib/Transforms/IPO/Internalize.cpp3
-rw-r--r--lib/Transforms/Instrumentation/BlockProfiling.cpp8
-rw-r--r--lib/Transforms/Instrumentation/EdgeProfiling.cpp6
-rw-r--r--lib/Transforms/Instrumentation/TraceBasicBlocks.cpp6
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp4
-rw-r--r--lib/Transforms/Scalar/LoopStrengthReduce.cpp8
-rw-r--r--lib/Transforms/Scalar/LowerPacked.cpp3
-rw-r--r--lib/Transforms/Scalar/SCCP.cpp6
-rw-r--r--lib/Transforms/Utils/CodeExtractor.cpp4
-rw-r--r--lib/Transforms/Utils/LowerSwitch.cpp3
-rw-r--r--lib/VMCore/AsmWriter.cpp10
-rw-r--r--lib/VMCore/LeakDetector.cpp19
-rw-r--r--lib/VMCore/PassManager.cpp2
-rw-r--r--lib/VMCore/TypeSymbolTable.cpp20
-rw-r--r--lib/VMCore/Verifier.cpp5
-rw-r--r--projects/Stacker/tools/stkrc/stkrc.cpp8
-rw-r--r--tools/bugpoint/OptimizerDriver.cpp51
-rw-r--r--tools/gccas/gccas.cpp10
-rw-r--r--tools/gccld/GenerateCode.cpp8
-rw-r--r--tools/gccld/gccld.cpp34
-rw-r--r--tools/llvm-as/llvm-as.cpp30
-rw-r--r--tools/llvm-dis/llvm-dis.cpp24
-rw-r--r--tools/llvm-extract/llvm-extract.cpp18
-rw-r--r--tools/llvm-ld/llvm-ld.cpp38
-rw-r--r--tools/llvm-link/llvm-link.cpp46
-rw-r--r--tools/llvm-upgrade/llvm-upgrade.cpp20
-rw-r--r--tools/lto/lto.cpp12
-rw-r--r--tools/opt/opt.cpp44
112 files changed, 1844 insertions, 1679 deletions
diff --git a/examples/ModuleMaker/ModuleMaker.cpp b/examples/ModuleMaker/ModuleMaker.cpp
index 30f63bb8f4..0c9a61853e 100644
--- a/examples/ModuleMaker/ModuleMaker.cpp
+++ b/examples/ModuleMaker/ModuleMaker.cpp
@@ -53,7 +53,7 @@ int main() {
BB->getInstList().push_back(new ReturnInst(Add));
// Output the bytecode file to stdout
- WriteBytecodeToFile(M, llvm_cout);
+ WriteBytecodeToFile(M, cout);
// Delete the module and all of its contents.
delete M;
diff --git a/include/llvm/ADT/BitSetVector.h b/include/llvm/ADT/BitSetVector.h
index 67e3a52d6c..5d1fc86c3a 100644
--- a/include/llvm/ADT/BitSetVector.h
+++ b/include/llvm/ADT/BitSetVector.h
@@ -29,7 +29,6 @@
#include <bitset>
#include <vector>
#include <functional>
-#include <ostream>
namespace llvm {
@@ -174,11 +173,11 @@ public:
///
/// Printing and debugging support
///
- void print(llvm_ostream &O) const {
+ void print(OStream &O) const {
if (O.stream()) print(*O.stream());
}
void print(std::ostream &O) const;
- void dump() const { print(llvm_cerr); }
+ void dump() const { print(cerr); }
public:
//
@@ -235,6 +234,9 @@ public:
return (I.bitvec == bitvec &&
I.currentWord == currentWord && I.currentBit == currentBit);
}
+ bool operator!=(const iterator& I) {
+ return !(*this == I);
+ }
protected:
static iterator begin(BitSetVector& _bitvec) { return iterator(_bitvec); }
@@ -252,7 +254,7 @@ inline void BitSetVector::print(std::ostream& O) const
O << "<" << (*I) << ">" << (I+1 == E? "\n" : ", ");
}
-inline llvm_ostream& operator<< (llvm_ostream& O, const BitSetVector& bset) {
+inline OStream& operator<< (OStream& O, const BitSetVector& bset) {
bset.print(O);
return O;
}
diff --git a/include/llvm/ADT/EquivalenceClasses.h b/include/llvm/ADT/EquivalenceClasses.h
index b915c2aeae..7d305cb744 100644
--- a/include/llvm/ADT/EquivalenceClasses.h
+++ b/include/llvm/ADT/EquivalenceClasses.h
@@ -43,8 +43,8 @@ namespace llvm {
/// if (!I->isLeader()) continue; // Ignore non-leader sets.
/// for (EquivalenceClasses<int>::member_iterator MI = EC.member_begin(I);
/// MI != EC.member_end(); ++MI) // Loop over members in this set.
-/// llvm_cerr << *MI << " "; // Print member.
-/// llvm_cerr << "\n"; // Finish set.
+/// cerr << *MI << " "; // Print member.
+/// cerr << "\n"; // Finish set.
/// }
///
/// This example prints:
diff --git a/include/llvm/Analysis/AliasSetTracker.h b/include/llvm/Analysis/AliasSetTracker.h
index c4273ac37d..5fcda16270 100644
--- a/include/llvm/Analysis/AliasSetTracker.h
+++ b/include/llvm/Analysis/AliasSetTracker.h
@@ -156,7 +156,7 @@ public:
iterator end() const { return iterator(); }
bool empty() const { return PtrList == 0; }
- void print(llvm_ostream &OS) const {
+ void print(OStream &OS) const {
if (OS.stream()) print(*OS.stream());
}
void print(std::ostream &OS) const;
@@ -248,7 +248,7 @@ private:
bool aliasesCallSite(CallSite CS, AliasAnalysis &AA) const;
};
-inline llvm_ostream& operator<<(llvm_ostream &OS, const AliasSet &AS) {
+inline OStream& operator<<(OStream &OS, const AliasSet &AS) {
AS.print(OS);
return OS;
}
@@ -361,7 +361,7 @@ public:
iterator begin() { return AliasSets.begin(); }
iterator end() { return AliasSets.end(); }
- void print(llvm_ostream &OS) const {
+ void print(OStream &OS) const {
if (OS.stream()) print(*OS.stream());
}
void print(std::ostream &OS) const;
@@ -390,7 +390,7 @@ private:
AliasSet *findAliasSetForCallSite(CallSite CS);
};
-inline llvm_ostream& operator<<(llvm_ostream &OS, const AliasSetTracker &AST) {
+inline OStream& operator<<(OStream &OS, const AliasSetTracker &AST) {
AST.print(OS);
return OS;
}
diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h
index f29aef3a22..1f737da53c 100644
--- a/include/llvm/Analysis/CallGraph.h
+++ b/include/llvm/Analysis/CallGraph.h
@@ -152,7 +152,7 @@ public:
///
void initialize(Module &M);
- void print(llvm_ostream &o, const Module *M) const {
+ void print(OStream &o, const Module *M) const {
if (o.stream()) print(*o.stream(), M);
}
virtual void print(std::ostream &o, const Module *M) const;
@@ -201,7 +201,7 @@ public:
/// dump - Print out this call graph node.
///
void dump() const;
- void print(llvm_ostream &OS) const {
+ void print(OStream &OS) const {
if (OS.stream()) print(*OS.stream());
}
void print(std::ostream &OS) const;
diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h
index 61853587d7..1063efad13 100644
--- a/include/llvm/Analysis/DataStruct