about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorMartinNowack <martin.nowack@gmail.com>2016-11-03 12:43:13 +0100
committerGitHub <noreply@github.com>2016-11-03 12:43:13 +0100
commit48abc42627315f3435e60ee3d95c1749c667519f (patch)
treef516e99450b5d87b19e6d3fb431db50c1325faa9 /lib
parentdeb3584ea5a75f7fe33b3aeed084bfbbaaf18d98 (diff)
parentbf9f4a9765213060a268857200b457b8cdcddac0 (diff)
downloadklee-48abc42627315f3435e60ee3d95c1749c667519f.tar.gz
Merge pull request #491 from andreamattavelli/fix_raiseasm_macos
Support for Darwin platform in RaiseAsm pass
Diffstat (limited to 'lib')
-rw-r--r--lib/Module/RaiseAsm.cpp3
1 files changed, 2 insertions, 1 deletions
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)