about summary refs log tree commit diff homepage
path: root/lib/Module
diff options
context:
space:
mode:
authorGleb Popov <6yearold@gmail.com>2019-03-31 13:20:07 +0400
committerMartinNowack <martin.nowack@gmail.com>2019-04-02 13:06:52 +0100
commite0d530a61ba458d68bbb086b2b6df675dea5a6dd (patch)
treec5d474674b98410a22bbd530a29b3848e2a3aaa8 /lib/Module
parentdc9a1cc700e00e56aee30ac433db4f2ed8519d43 (diff)
downloadklee-e0d530a61ba458d68bbb086b2b6df675dea5a6dd.tar.gz
Add FreeBSD OS triple in RaiseAsm
Diffstat (limited to 'lib/Module')
-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 5d86bfd1..51d9b020 100644
--- a/lib/Module/RaiseAsm.cpp
+++ b/lib/Module/RaiseAsm.cpp
@@ -60,7 +60,8 @@ bool RaiseAsmPass::runOnInstruction(Module &M, Instruction *I) {
 
   if (triple.getArch() == llvm::Triple::x86_64 &&
       (triple.getOS() == llvm::Triple::Linux ||
-       triple.getOS() == llvm::Triple::Darwin)) {
+       triple.getOS() == llvm::Triple::Darwin ||
+       triple.getOS() == llvm::Triple::FreeBSD)) {
 
     if (ia->getAsmString() == "" && ia->hasSideEffects()) {
       IRBuilder<> Builder(I);