summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-23 04:52:46 +0000
committerChris Lattner <sabre@nondot.org>2009-08-23 04:52:46 +0000
commit79c5d3f9717756dc3ff56cfcaa3ae1a5930c457a (patch)
tree507e7ca43cdca884242d2bb314ed04ec8a17d52c /include
parent0c47a412079c11656fdcc7e125d604e3aa543903 (diff)
downloadllvm-79c5d3f9717756dc3ff56cfcaa3ae1a5930c457a.tar.gz
llvm-79c5d3f9717756dc3ff56cfcaa3ae1a5930c457a.tar.bz2
llvm-79c5d3f9717756dc3ff56cfcaa3ae1a5930c457a.tar.xz
remove the std::ostream version of module and type printing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Module.h7
-rw-r--r--include/llvm/Type.h2
2 files changed, 1 insertions, 8 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index aa91af1a4a..501625df7a 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -468,7 +468,6 @@ public:
public:
/// Print the module to an output stream with AssemblyAnnotationWriter.
void print(raw_ostream &OS, AssemblyAnnotationWriter *AAW) const;
- void print(std::ostream &OS, AssemblyAnnotationWriter *AAW) const;
/// Dump the module to stderr (for debugging).
void dump() const;
@@ -482,11 +481,7 @@ public:
/// @}
};
-/// An iostream inserter for modules.
-inline std::ostream &operator<<(std::ostream &O, const Module &M) {
- M.print(O, 0);
- return O;
-}
+/// An raw_ostream inserter for modules.
inline raw_ostream &operator<<(raw_ostream &O, const Module &M) {
M.print(O, 0);
return O;
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index b7516323c5..94ebf1e521 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -168,7 +168,6 @@ protected:
public:
void print(raw_ostream &O) const;
- void print(std::ostream &O) const;
/// @brief Debugging support: print to stderr
void dump() const;
@@ -485,7 +484,6 @@ template <> inline bool isa_impl<PointerType, Type>(const Type &Ty) {
return Ty.getTypeID() == Type::PointerTyID;
}
-std::ostream &operator<<(std::ostream &OS, const Type &T);
raw_ostream &operator<<(raw_ostream &OS, const Type &T);
} // End llvm namespace