void EmitGlobalVariable(const GlobalVariable *GV) override;
+ void EmitJumpTableInfo() override;
void EmitConstantPool() override;
void EmitFunctionEntryLabel() override;
void EmitFunctionBodyStart() override;
"WebAssembly disables constant pools");
}
+void WebAssemblyAsmPrinter::EmitJumpTableInfo() {
+ // Nothing to do; jump tables are incorporated into the instruction stream.
+}
+
void WebAssemblyAsmPrinter::EmitFunctionEntryLabel() {
SmallString<128> Str;
raw_svector_ostream OS(Str);
case MachineOperand::MO_GlobalAddress: {
OS << ' ' << toSymbol(MO.getGlobal()->getName());
} break;
+ case MachineOperand::MO_MachineBasicBlock: {
+ OS << ' ' << toSymbol(MO.getMBB()->getSymbol()->getName());
+ } break;
}
OS << ')';
}