mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-07 10:02:22 +00:00
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
This commit is contained in:
parent
bc72ad7b27
commit
7fe2469150
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user