mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Allow printing functions with an optional annotationwriter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234807 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3059,6 +3059,13 @@ 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) const {
|
||||
SlotTracker SlotTable(this);
|
||||
formatted_raw_ostream OS(ROS);
|
||||
|
Reference in New Issue
Block a user