Index: lib/MC/MCNullStreamer.cpp =================================================================== --- lib/MC/MCNullStreamer.cpp +++ lib/MC/MCNullStreamer.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +#include "llvm/ADT/StringRef.h" #include "llvm/MC/MCInst.h" #include "llvm/MC/MCStreamer.h" #include "llvm/MC/MCSymbol.h" @@ -22,6 +23,9 @@ /// @name MCStreamer Interface /// @{ + bool hasRawTextSupport() const override { return true; } + void EmitRawTextImpl(StringRef String) override {} + bool EmitSymbolAttribute(MCSymbol *Symbol, MCSymbolAttr Attribute) override { return true; Index: test/CodeGen/Hexagon/inline-asm-filetype-null.ll =================================================================== --- /dev/null +++ test/CodeGen/Hexagon/inline-asm-filetype-null.ll @@ -0,0 +1,8 @@ +; RUN: llc -filetype=null < %s + +target triple = "hexagon" + +define void @foo() { + tail call void asm sideeffect "//", ""() + ret void +}