From bf9f4a9765213060a268857200b457b8cdcddac0 Mon Sep 17 00:00:00 2001 From: Andrea Mattavelli Date: Thu, 3 Nov 2016 10:22:54 +0000 Subject: Adds support for Darwin platform in RaiseAsm pass --- lib/Module/RaiseAsm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Module/RaiseAsm.cpp b/lib/Module/RaiseAsm.cpp index 7c0e6ccf..e612ca63 100644 --- a/lib/Module/RaiseAsm.cpp +++ b/lib/Module/RaiseAsm.cpp @@ -67,7 +67,8 @@ bool RaiseAsmPass::runOnInstruction(Module &M, Instruction *I) { return true; if (triple.getArch() == llvm::Triple::x86_64 && - triple.getOS() == llvm::Triple::Linux) { + (triple.getOS() == llvm::Triple::Linux || + triple.getOS() == llvm::Triple::Darwin)) { if (ia->getAsmString() == "" && ia->hasSideEffects()) { #if LLVM_VERSION_CODE >= LLVM_VERSION(3, 3) -- cgit 1.4.1