[PATCH] D53938: [MC] Implement EmitRawText in MCNullStreamer
Daniel Sanders via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 1 08:43:40 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL345841: [MC] Implement EmitRawText in MCNullStreamer (authored by dsanders, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D53938
Files:
llvm/trunk/lib/MC/MCNullStreamer.cpp
llvm/trunk/test/CodeGen/Hexagon/inline-asm-filetype-null.ll
Index: llvm/trunk/test/CodeGen/Hexagon/inline-asm-filetype-null.ll
===================================================================
--- llvm/trunk/test/CodeGen/Hexagon/inline-asm-filetype-null.ll
+++ llvm/trunk/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
+}
Index: llvm/trunk/lib/MC/MCNullStreamer.cpp
===================================================================
--- llvm/trunk/lib/MC/MCNullStreamer.cpp
+++ llvm/trunk/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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53938.172136.patch
Type: text/x-patch
Size: 1168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181101/1502a028/attachment.bin>
More information about the llvm-commits
mailing list