[llvm-commits] CVS: llvm/include/llvm/SlotCalculator.h

Chris Lattner lattner at cs.uiuc.edu
Tue Jan 13 20:50:01 PST 2004


Changes in directory llvm/include/llvm:

SlotCalculator.h updated: 1.13 -> 1.14

---
Log message:

The only clients of the slot calculator are now the asmwriter and bcwriter.
Since this really only makes sense for these two, change hte instance variable
to reflect whether we are writing a bytecode file or not.  This makes it
reasonable to add bcwriter specific stuff to it as necessary.


---
Diffs of the changes:  (+8 -3)

Index: llvm/include/llvm/SlotCalculator.h
diff -u llvm/include/llvm/SlotCalculator.h:1.13 llvm/include/llvm/SlotCalculator.h:1.14
--- llvm/include/llvm/SlotCalculator.h:1.13	Tue Nov 11 16:41:30 2003
+++ llvm/include/llvm/SlotCalculator.h	Tue Jan 13 20:49:19 2004
@@ -32,7 +32,12 @@
 
 class SlotCalculator {
   const Module *TheModule;
-  bool IgnoreNamedNodes;     // Shall we not count named nodes?
+
+  // BuildBytecodeInfo - If true, this is the creating information for the
+  // bytecode writer, if false, we are building information for the assembly
+  // emitter.  The assembly emitter doesn't need named objects numbered, among
+  // other differences.
+  bool BuildBytecodeInfo;
 
   typedef std::vector<const Value*> TypePlane;
   std::vector<TypePlane> Table;
@@ -44,9 +49,9 @@
   std::vector<unsigned> ModuleLevel;
 
 public:
-  SlotCalculator(const Module *M, bool IgnoreNamed);
+  SlotCalculator(const Module *M, bool BuildBytecodeInfo);
   // Start out in incorp state
-  SlotCalculator(const Function *M, bool IgnoreNamed);
+  SlotCalculator(const Function *M, bool BuildBytecodeInfo);
   inline ~SlotCalculator() {}
   
   // getSlot returns < 0 on error!





More information about the llvm-commits mailing list