Tools.cpp (243830) | Tools.cpp (244640) |
---|---|
1//===--- Tools.cpp - Tools Implementations --------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 651 unchanged lines hidden (view full) --- 660 if (StringRef(ArchName).startswith("v6") || 661 StringRef(ArchName).startswith("v7")) 662 FloatABI = "softfp"; 663 else 664 FloatABI = "soft"; 665 break; 666 } 667 | 1//===--- Tools.cpp - Tools Implementations --------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 651 unchanged lines hidden (view full) --- 660 if (StringRef(ArchName).startswith("v6") || 661 StringRef(ArchName).startswith("v7")) 662 FloatABI = "softfp"; 663 else 664 FloatABI = "soft"; 665 break; 666 } 667 |
668 case llvm::Triple::FreeBSD: 669 // FreeBSD defaults to soft float 670 FloatABI = "soft"; 671 break; 672 |
|
668 default: 669 switch(Triple.getEnvironment()) { 670 case llvm::Triple::GNUEABIHF: 671 FloatABI = "hard"; 672 break; 673 case llvm::Triple::GNUEABI: 674 FloatABI = "softfp"; 675 break; --- 4741 unchanged lines hidden (view full) --- 5417 options::OPT_fpie, options::OPT_fno_pie); 5418 if (LastPICArg && 5419 (LastPICArg->getOption().matches(options::OPT_fPIC) || 5420 LastPICArg->getOption().matches(options::OPT_fpic) || 5421 LastPICArg->getOption().matches(options::OPT_fPIE) || 5422 LastPICArg->getOption().matches(options::OPT_fpie))) { 5423 CmdArgs.push_back("-KPIC"); 5424 } | 673 default: 674 switch(Triple.getEnvironment()) { 675 case llvm::Triple::GNUEABIHF: 676 FloatABI = "hard"; 677 break; 678 case llvm::Triple::GNUEABI: 679 FloatABI = "softfp"; 680 break; --- 4741 unchanged lines hidden (view full) --- 5422 options::OPT_fpie, options::OPT_fno_pie); 5423 if (LastPICArg && 5424 (LastPICArg->getOption().matches(options::OPT_fPIC) || 5425 LastPICArg->getOption().matches(options::OPT_fpic) || 5426 LastPICArg->getOption().matches(options::OPT_fPIE) || 5427 LastPICArg->getOption().matches(options::OPT_fpie))) { 5428 CmdArgs.push_back("-KPIC"); 5429 } |
5430 } else if (getToolChain().getArch() == llvm::Triple::arm || 5431 getToolChain().getArch() == llvm::Triple::thumb) { 5432 CmdArgs.push_back("-mfpu=softvfp"); 5433 switch(getToolChain().getTriple().getEnvironment()) { 5434 case llvm::Triple::GNUEABI: 5435 case llvm::Triple::EABI: 5436 break; 5437 5438 default: 5439 CmdArgs.push_back("-matpcs"); 5440 } |
|
5425 } 5426 5427 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, 5428 options::OPT_Xassembler); 5429 5430 CmdArgs.push_back("-o"); 5431 CmdArgs.push_back(Output.getFilename()); 5432 --- 962 unchanged lines hidden --- | 5441 } 5442 5443 Args.AddAllArgValues(CmdArgs, options::OPT_Wa_COMMA, 5444 options::OPT_Xassembler); 5445 5446 CmdArgs.push_back("-o"); 5447 CmdArgs.push_back(Output.getFilename()); 5448 --- 962 unchanged lines hidden --- |