From 46dc29aa60e4a662c18ea7b2bac1c570ea7a728f Mon Sep 17 00:00:00 2001 From: Lukas Zaoral Date: Tue, 20 Apr 2021 23:35:02 +0200 Subject: Module/RaiseAsm: Support i686 target as well Add i686 to the list of supporterd targets by this transformation pass. --- lib/Module/RaiseAsm.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/Module/RaiseAsm.cpp b/lib/Module/RaiseAsm.cpp index cd8f7934..55550864 100644 --- a/lib/Module/RaiseAsm.cpp +++ b/lib/Module/RaiseAsm.cpp @@ -63,10 +63,9 @@ bool RaiseAsmPass::runOnInstruction(Module &M, Instruction *I) { if (TLI->ExpandInlineAsm(ci)) return true; - if (triple.getArch() == llvm::Triple::x86_64 && - (triple.getOS() == llvm::Triple::Linux || - triple.getOS() == llvm::Triple::Darwin || - triple.getOS() == llvm::Triple::FreeBSD)) { + if ((triple.getArch() == llvm::Triple::x86 || + triple.getArch() == llvm::Triple::x86_64) && + (triple.isOSLinux() || triple.isMacOSX() || triple.isOSFreeBSD())) { if (ia->getAsmString() == "" && ia->hasSideEffects() && ia->getFunctionType()->getReturnType()->isVoidTy()) { -- cgit 1.4.1