diff options
Diffstat (limited to 'lib/Target/Hexagon/HexagonAsmPrinter.h')
-rw-r--r-- | lib/Target/Hexagon/HexagonAsmPrinter.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Target/Hexagon/HexagonAsmPrinter.h b/lib/Target/Hexagon/HexagonAsmPrinter.h index 5f4c162..792fc8b 100644 --- a/lib/Target/Hexagon/HexagonAsmPrinter.h +++ b/lib/Target/Hexagon/HexagonAsmPrinter.h @@ -25,9 +25,12 @@ namespace llvm { const HexagonSubtarget *Subtarget; public: - explicit HexagonAsmPrinter(TargetMachine &TM, MCStreamer &Streamer) - : AsmPrinter(TM, Streamer) { - Subtarget = &TM.getSubtarget<HexagonSubtarget>(); + explicit HexagonAsmPrinter(TargetMachine &TM, + std::unique_ptr<MCStreamer> Streamer); + + bool runOnMachineFunction(MachineFunction &Fn) override { + Subtarget = &Fn.getSubtarget<HexagonSubtarget>(); + return AsmPrinter::runOnMachineFunction(Fn); } const char *getPassName() const override { |