Remove AssemblyAnnotationWriter from NamedMDNode::print.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 23 Apr 2014 12:23:05 +0000 (12:23 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 23 Apr 2014 12:23:05 +0000 (12:23 +0000)
No functionality change, this parameter was always set to nullptr.

Patch by Robert Matusewicz!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206972 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Metadata.h
lib/IR/AsmWriter.cpp

index c734f0162304c4e14aabe23cbc0bab482de7f466..7a0ca887201bcb488a0326278ff11cee918f32db 100644 (file)
@@ -272,7 +272,7 @@ public:
   StringRef getName() const;
 
   /// print - Implement operator<< on NamedMDNode.
-  void print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW = nullptr) const;
+  void print(raw_ostream &ROS) const;
 
   /// dump() - Allow printing of NamedMDNodes from the debugger.
   void dump() const;
index 81b667521540a246c3863ebef4374e67e6e90ed5..388ce70f97bd885124926caa5d5cb28664ca5b9c 100644 (file)
@@ -2141,10 +2141,10 @@ void Module::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const {
   W.printModule(this);
 }
 
-void NamedMDNode::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const {
+void NamedMDNode::print(raw_ostream &ROS) const {
   SlotTracker SlotTable(getParent());
   formatted_raw_ostream OS(ROS);
-  AssemblyWriter W(OS, SlotTable, getParent(), AAW);
+  AssemblyWriter W(OS, SlotTable, getParent(), nullptr);
   W.printNamedMDNode(this);
 }
 
@@ -2247,4 +2247,4 @@ void Type::dump() const { print(dbgs()); }
 void Module::dump() const { print(dbgs(), nullptr); }
 
 // NamedMDNode::dump() - Allow printing of NamedMDNodes from the debugger.
-void NamedMDNode::dump() const { print(dbgs(), nullptr); }
+void NamedMDNode::dump() const { print(dbgs()); }