summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/AsmPrinter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-04 17:57:56 +0000
committerChris Lattner <sabre@nondot.org>2010-04-04 17:57:56 +0000
commite00b59f954c7e27d9d34abf90bfac969fb12f19a (patch)
treecaa934eb7f2e355b7af3cfa27f5eab6dc4f6b934 /include/llvm/CodeGen/AsmPrinter.h
parent9041ae274b537f7ae7f7a260b233a38d36d20432 (diff)
downloadllvm-e00b59f954c7e27d9d34abf90bfac969fb12f19a.tar.gz
llvm-e00b59f954c7e27d9d34abf90bfac969fb12f19a.tar.bz2
llvm-e00b59f954c7e27d9d34abf90bfac969fb12f19a.tar.xz
lazily allocate the GCMetadataPrinters map and remove DenseMap
from the AsmPrinter interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 080dc16e21..a46fa4955c 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -19,7 +19,6 @@
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/Support/DebugLoc.h"
#include "llvm/Target/TargetMachine.h"
-#include "llvm/ADT/DenseMap.h"
namespace llvm {
class BlockAddress;
@@ -60,11 +59,6 @@ namespace llvm {
class AsmPrinter : public MachineFunctionPass {
static char ID;
- // GCMetadataPrinters - The garbage collection metadata printer table.
- typedef DenseMap<GCStrategy*,GCMetadataPrinter*> gcp_map_type;
- typedef gcp_map_type::iterator gcp_iterator;
- gcp_map_type GCMetadataPrinters;
-
/// If VerboseAsm is set, a pointer to the loop info for this
/// function.
///
@@ -125,6 +119,11 @@ namespace llvm {
///
bool VerboseAsm;
+
+ private:
+ // GCMetadataPrinters - The garbage collection metadata printer table.
+ void *GCMetadataPrinters; // Really a DenseMap.
+
/// Private state for PrintSpecial()
// Assign a unique ID to this machine instruction.
mutable const MachineInstr *LastMI;