//===-- RustGCPrinter.cpp - Rust garbage collection map printer -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file defines the emitter for the Rust garbage collection stack maps. // //===----------------------------------------------------------------------===// #include "llvm/CodeGen/GCs.h" #include "llvm/CodeGen/AsmPrinter.h" #include "llvm/CodeGen/GCMetadataPrinter.h" #include "llvm/Module.h" #include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCSymbol.h" #include "llvm/MC/MCStreamer.h" #include "llvm/Target/Mangler.h" #include "llvm/Target/TargetData.h" #include "llvm/Target/TargetLoweringObjectFile.h" #include "llvm/Target/TargetMachine.h" #include "llvm/ADT/SmallString.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/FormattedStream.h" #include using namespace llvm; namespace { class RustGCMetadataPrinter : public GCMetadataPrinter { public: void beginAssembly(AsmPrinter &AP) {}; void finishAssembly(AsmPrinter &AP) {}; }; } static GCMetadataPrinterRegistry::Add Y("rust", "Rust GC metadata printer");