From 904ec3a392f295d0242f27d54ace7a7160743597 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 5 Aug 2010 18:34:30 +0000 Subject: [PATCH] Handle the pseudo in MCInstLower. llvm-svn: 110359 --- lib/Target/X86/X86MCInstLower.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Target/X86/X86MCInstLower.cpp b/lib/Target/X86/X86MCInstLower.cpp index e55b7265cb9..ae20e689ef8 100644 --- a/lib/Target/X86/X86MCInstLower.cpp +++ b/lib/Target/X86/X86MCInstLower.cpp @@ -515,6 +515,12 @@ void X86AsmPrinter::EmitInstruction(const MachineInstr *MI) { } return; + // Emit nothing here but a comment if we can. + case X86::Int_MemBarrier: + if (OutStreamer.hasRawTextSupport()) + OutStreamer.EmitRawText(StringRef("\t#MEMBARRIER")); + return; + case X86::TAILJMPr: case X86::TAILJMPd: case X86::TAILJMPd64: