uselistorder: Pull the assembly bit up out of the printer
[oota-llvm.git] / include / llvm / IR / Module.h
index ac60c8e885e28dbcd59df6b7963410bcb6a7bbc4..dbaf322263d43e00d3e2feadcad0ba2e27e40486 100644 (file)
@@ -642,8 +642,11 @@ public:
 /// @{
 
   /// Print the module to an output stream with an optional
-  /// AssemblyAnnotationWriter.
-  void print(raw_ostream &OS, AssemblyAnnotationWriter *AAW) const;
+  /// AssemblyAnnotationWriter.  If \c ShouldPreserveUseListOrder, then include
+  /// uselistorder directives so that use-lists can be recreated when reading
+  /// the assembly.
+  void print(raw_ostream &OS, AssemblyAnnotationWriter *AAW,
+             bool ShouldPreserveUseListOrder = false) const;
 
   /// Dump the module to stderr (for debugging).
   void dump() const;