summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-23 00:47:04 +0000
committerChris Lattner <sabre@nondot.org>2009-08-23 00:47:04 +0000
commit2d8e3d20be377112999670f210200b3658762571 (patch)
tree3d5bc32c0b4ca5bdcad5b0f298dd59f738c278e5 /include
parent77942d4ee47e76626d574b027e4b9c5c90e2bbf4 (diff)
downloadllvm-2d8e3d20be377112999670f210200b3658762571.tar.gz
llvm-2d8e3d20be377112999670f210200b3658762571.tar.bz2
llvm-2d8e3d20be377112999670f210200b3658762571.tar.xz
remove dead PrefixPrinter class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/Dump.h60
-rw-r--r--include/llvm/CodeGen/MachineBasicBlock.h17
-rw-r--r--include/llvm/CodeGen/MachineFunction.h13
3 files changed, 11 insertions, 79 deletions
diff --git a/include/llvm/CodeGen/Dump.h b/include/llvm/CodeGen/Dump.h
deleted file mode 100644
index 439141cb44..0000000000
--- a/include/llvm/CodeGen/Dump.h
+++ /dev/null
@@ -1,60 +0,0 @@
-//===- llvm/Support/Dump.h - Easy way to tailor dump output -----*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This file provides the PrefixPrinter interface to pass to MachineFunction
-// and MachineBasicBlock print methods to output additional information before
-// blocks and instructions are printed.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_CODEGEN_DUMP_H
-#define LLVM_CODEGEN_DUMP_H
-
-#include <iosfwd>
-
-namespace llvm {
-
-class MachineBasicBlock;
-class MachineInstr;
-class raw_ostream;
-
-/// PrefixPrinter - Print some additional information before printing
-/// basic blocks and instructions.
-class PrefixPrinter {
-public:
- virtual ~PrefixPrinter();
-
- /// operator() - Print a prefix before each MachineBasicBlock
- virtual raw_ostream &operator()(raw_ostream &out,
- const MachineBasicBlock &) const {
- return out;
- }
-
- /// operator() - Print a prefix before each MachineInstr
- virtual raw_ostream &operator()(raw_ostream &out,
- const MachineInstr &) const {
- return out;
- }
-
- /// operator() - Print a prefix before each MachineBasicBlock
- virtual std::ostream &operator()(std::ostream &out,
- const MachineBasicBlock &) const {
- return out;
- }
-
- /// operator() - Print a prefix before each MachineInstr
- virtual std::ostream &operator()(std::ostream &out,
- const MachineInstr &) const {
- return out;
- }
-};
-
-} // End llvm namespace
-
-#endif
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h
index 51b2bbf66b..787b33bc38 100644
--- a/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/include/llvm/CodeGen/MachineBasicBlock.h
@@ -16,7 +16,6 @@
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/ADT/GraphTraits.h"
-#include "llvm/CodeGen/Dump.h"
namespace llvm {
@@ -311,17 +310,13 @@ public:
// Debugging methods.
void dump() const;
- void print(std::ostream &OS,
- const PrefixPrinter &prefix = PrefixPrinter()) const;
- void print(std::ostream *OS,
- const PrefixPrinter &prefix = PrefixPrinter()) const {
- if (OS) print(*OS, prefix);
+ void print(std::ostream &OS) const;
+ void print(std::ostream *OS) const {
+ if (OS) print(*OS);
}
- void print(raw_ostream &OS,
- const PrefixPrinter &prefix = PrefixPrinter()) const;
- void print(raw_ostream *OS,
- const PrefixPrinter &prefix = PrefixPrinter()) const {
- if (OS) print(*OS, prefix);
+ void print(raw_ostream &OS) const;
+ void print(raw_ostream *OS) const {
+ if (OS) print(*OS);
}
/// getNumber - MachineBasicBlocks are uniquely numbered at the function
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h
index 0d15a95979..e4681d9292 100644
--- a/include/llvm/CodeGen/MachineFunction.h
+++ b/include/llvm/CodeGen/MachineFunction.h
@@ -18,13 +18,12 @@
#ifndef LLVM_CODEGEN_MACHINEFUNCTION_H
#define LLVM_CODEGEN_MACHINEFUNCTION_H
-#include <map>
+#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/ADT/ilist.h"
#include "llvm/Support/DebugLoc.h"
-#include "llvm/CodeGen/Dump.h"
-#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Recycler.h"
+#include <map>
namespace llvm {
@@ -208,11 +207,9 @@ public:
/// print - Print out the MachineFunction in a format suitable for debugging
/// to the specified stream.
///
- void print(std::ostream &OS,
- const PrefixPrinter &prefix = PrefixPrinter()) const;
- void print(std::ostream *OS,
- const PrefixPrinter &prefix = PrefixPrinter()) const {
- if (OS) print(*OS, prefix);
+ void print(std::ostream &OS) const;
+ void print(std::ostream *OS) const {
+ if (OS) print(*OS);
}
/// viewCFG - This function is meant for use from the debugger. You can just