IR: Remove a redundant function. NFC
authorJustin Bogner <mail@justinbogner.com>
Wed, 2 Sep 2015 22:28:47 +0000 (22:28 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 2 Sep 2015 22:28:47 +0000 (22:28 +0000)
Function::print isn't interestingly different from Value::print. Just
let the only caller (in PrintCallGraphPass) call the Value version.

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

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

index 69c622cc9a828eda2c09747c6e5c8b5837ca7e16..0c507e4b972e4c39853442754ce2d32c75799580 100644 (file)
@@ -524,10 +524,6 @@ public:
   Constant *getPrologueData() const;
   void setPrologueData(Constant *PrologueData);
 
-  /// Print the function to an output stream with an optional
-  /// AssemblyAnnotationWriter.
-  void print(raw_ostream &OS, AssemblyAnnotationWriter *AAW = nullptr) const;
-
   /// viewCFG - This function is meant for use from the debugger.  You can just
   /// say 'call F->viewCFG()' and a ghostview window should pop up from the
   /// program, displaying the CFG of the current function with the code for each
index 1219aac8c6ad42edad4c959e0cd0a081b2b4b836..bc9b00e7de14ae3aac6666da99b6f7c183b28c27 100644 (file)
@@ -3199,13 +3199,6 @@ void AssemblyWriter::printUseLists(const Function *F) {
 //                       External Interface declarations
 //===----------------------------------------------------------------------===//
 
-void Function::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW) const {
-  SlotTracker SlotTable(this->getParent());
-  formatted_raw_ostream OS(ROS);
-  AssemblyWriter W(OS, SlotTable, this->getParent(), AAW);
-  W.printFunction(this);
-}
-
 void Module::print(raw_ostream &ROS, AssemblyAnnotationWriter *AAW,
                    bool ShouldPreserveUseListOrder) const {
   SlotTracker SlotTable(this);