diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-06 06:40:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-06 06:40:49 +0000 |
commit | 82c4bc7153d390ad1c2b369e0caef456948b8825 (patch) | |
tree | 121b011d1e3b5989aeaa9c085a676e6648ec52a0 /include | |
parent | e53883837ddb3f431788c31c7340bd63da8c3ac6 (diff) |
Remove the dead CachedWriter class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Assembly/CachedWriter.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/include/llvm/Assembly/CachedWriter.h b/include/llvm/Assembly/CachedWriter.h deleted file mode 100644 index 5d5049c5e6..0000000000 --- a/include/llvm/Assembly/CachedWriter.h +++ /dev/null @@ -1,74 +0,0 @@ -//===-- llvm/Assembly/CachedWriter.h - Printer Accellerator -----*- C++ -*-===// -// -// 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 defines a 'CachedWriter' class that is used to accelerate printing -// chunks of LLVM. This is used when a module is not being changed, but random -// parts of it need to be printed. This can greatly speed up printing of LLVM -// output. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_ASSEMBLY_CACHEDWRITER_H -#define LLVM_ASSEMBLY_CACHEDWRITER_H - -#include "llvm/Value.h" -#include <iostream> - -namespace llvm { - -class Module; -class PointerType; -class AssemblyWriter; // Internal private class -class SlotMachine; - -class CachedWriter { - AssemblyWriter *AW; - SlotMachine *SC; - bool SymbolicTypes; - std::ostream &Out; - -public: - enum TypeWriter { - SymTypeOn, - SymTypeOff - }; - - CachedWriter(std::ostream &O = std::cout) - : AW(0), SC(0), SymbolicTypes(false), Out(O) { } - CachedWriter(const Module *M, std::ostream &O = std::cout) - : AW(0), SC(0), SymbolicTypes(false), Out(O) { - setModule(M); - } - ~CachedWriter(); - - // setModule - Invalidate internal state, use the new module instead. - void setModule(const Module *M); - - CachedWriter &operator<<(const Value &V); - - CachedWriter &operator<<(const Type &X); - - inline CachedWriter &operator<<(std::ostream &(&Manip)(std::ostream &)) { - Out << Manip; return *this; - } - - inline CachedWriter& operator<<(const char *X) { - Out << X; - return *this; - } - - inline CachedWriter &operator<<(enum TypeWriter tw) { - SymbolicTypes = (tw == SymTypeOn); - return *this; - } -}; - -} // End llvm namespace - -#endif |