De-virtualize mnemonicIsValid and remove from the base class. It's not called by...
[oota-llvm.git] / include / llvm / IR / ModuleSlotTracker.h
index c37dcecf8e4022375dd6719c7cdcb9220c937cb0..49730a66bdf64ad4b3cd62b3b5cc7cbb2337c81d 100644 (file)
@@ -17,6 +17,7 @@ namespace llvm {
 class Module;
 class Function;
 class SlotTracker;
+class Value;
 
 /// Manage lifetime of a slot tracker for printing IR.
 ///
@@ -61,6 +62,13 @@ public:
   /// Purge the currently incorporated function and incorporate \c F.  If \c F
   /// is currently incorporated, this is a no-op.
   void incorporateFunction(const Function &F);
+
+  /// Return the slot number of the specified local value.
+  ///
+  /// A function that defines this value should be incorporated prior to calling
+  /// this method.
+  /// Return -1 if the value is not in the function's SlotTracker.
+  int getLocalSlot(const Value *V);
 };
 
 } // end namespace llvm