|
| 1 | +//===-- RustGCPrinter.cpp - Rust garbage collection map printer -----------===// |
| 2 | +// |
| 3 | +// The LLVM Compiler Infrastructure |
| 4 | +// |
| 5 | +// This file is distributed under the University of Illinois Open Source |
| 6 | +// License. See LICENSE.TXT for details. |
| 7 | +// |
| 8 | +//===----------------------------------------------------------------------===// |
| 9 | +// |
| 10 | +// This file defines the emitter for the Rust garbage collection stack maps. |
| 11 | +// |
| 12 | +//===----------------------------------------------------------------------===// |
| 13 | + |
| 14 | +#include "llvm/CodeGen/GCs.h" |
| 15 | +#include "llvm/CodeGen/AsmPrinter.h" |
| 16 | +#include "llvm/CodeGen/GCMetadataPrinter.h" |
| 17 | +#include "llvm/Module.h" |
| 18 | +#include "llvm/MC/MCAsmInfo.h" |
| 19 | +#include "llvm/MC/MCContext.h" |
| 20 | +#include "llvm/MC/MCSymbol.h" |
| 21 | +#include "llvm/MC/MCStreamer.h" |
| 22 | +#include "llvm/Target/Mangler.h" |
| 23 | +#include "llvm/Target/TargetData.h" |
| 24 | +#include "llvm/Target/TargetLoweringObjectFile.h" |
| 25 | +#include "llvm/Target/TargetMachine.h" |
| 26 | +#include "llvm/ADT/SmallString.h" |
| 27 | +#include "llvm/Support/ErrorHandling.h" |
| 28 | +#include "llvm/Support/FormattedStream.h" |
| 29 | +#include <cctype> |
| 30 | + |
| 31 | +using namespace llvm; |
| 32 | + |
| 33 | +namespace { |
| 34 | + |
| 35 | + class RustGCMetadataPrinter : public GCMetadataPrinter { |
| 36 | + public: |
| 37 | + void beginAssembly(AsmPrinter &AP) {}; |
| 38 | + void finishAssembly(AsmPrinter &AP) {}; |
| 39 | + }; |
| 40 | + |
| 41 | +} |
| 42 | + |
| 43 | +static GCMetadataPrinterRegistry::Add<RustGCMetadataPrinter> |
| 44 | +Y("rust", "Rust GC metadata printer"); |
| 45 | + |
0 commit comments