diff options
| author | Justin Bogner <mail@justinbogner.com> | 2015-09-02 22:28:47 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2015-09-02 22:28:47 +0000 |
| commit | 7fe2469150ea99b806d136b45b7f536c23bca681 (patch) | |
| tree | 63c6f5aa27e1e520e0a3435a099716c6466921d6 | |
| parent | bc72ad7b27ca7bbe6d5ecf3253258736a4cf19ae (diff) | |
| download | bcm5719-llvm-7fe2469150ea99b806d136b45b7f536c23bca681.tar.gz bcm5719-llvm-7fe2469150ea99b806d136b45b7f536c23bca681.zip | |
IR: Remove a redundant function. NFC
Function::print isn't interestingly different from Value::print. Just
let the only caller (in PrintCallGraphPass) call the Value version.
llvm-svn: 246720
| -rw-r--r-- | llvm/include/llvm/IR/Function.h | 4 | ||||
| -rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 7 |
2 files changed, 0 insertions, 11 deletions
diff --git a/llvm/include/llvm/IR/Function.h b/llvm/include/llvm/IR/Function.h index 69c622cc9a8..0c507e4b972 100644 --- a/llvm/include/llvm/IR/Function.h +++ b/llvm/include/llvm/IR/Function.h @@ -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 diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 1219aac8c6a..bc9b00e7de1 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -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); |

