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

LLVM llvm at cs.uiuc.edu
Wed May 26 02:41:01 PDT 2004


Changes in directory llvm/include/llvm/Analysis:

SlotCalculator.h updated: 1.18 -> 1.19

---
Log message:

Part of bug 122: http://llvm.cs.uiuc.edu/PR122 :
This change removes the BuildBytecodeInfo flag from the SlotCalculator
class. This flag was needed to distinguish between the Bytecode/Writer
and the AsmWriter. Now that AsmWriter doesn't use SlotCalculator, we can
remove this flag and simplify some code. Also, some minor name changes
to CachedWriter.h needed to be committed (missed in previous commit).


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

Index: llvm/include/llvm/Analysis/SlotCalculator.h
diff -u llvm/include/llvm/Analysis/SlotCalculator.h:1.18 llvm/include/llvm/Analysis/SlotCalculator.h:1.19
--- llvm/include/llvm/Analysis/SlotCalculator.h:1.18	Tue Jan 20 13:50:12 2004
+++ llvm/include/llvm/Analysis/SlotCalculator.h	Wed May 26 02:37:11 2004
@@ -34,12 +34,6 @@
 class SlotCalculator {
   const Module *TheModule;
 
-  /// 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;
   std::map<const Value*, unsigned> NodeMap;
@@ -68,9 +62,9 @@
   SlotCalculator(const SlotCalculator &);  // DO NOT IMPLEMENT
   void operator=(const SlotCalculator &);  // DO NOT IMPLEMENT
 public:
-  SlotCalculator(const Module *M, bool BuildBytecodeInfo);
+  SlotCalculator(const Module *M );
   // Start out in incorp state
-  SlotCalculator(const Function *F, bool BuildBytecodeInfo);
+  SlotCalculator(const Function *F );
   
   /// getSlot - Return the slot number of the specified value in it's type
   /// plane.  This returns < 0 on error!





More information about the llvm-commits mailing list