summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Driver/Darwin: Simplify target version checks.Daniel Dunbar2010-01-271-19/+15
| | | | llvm-svn: 94641
* Driver/Darwin: Fix a few link arguments when targetting different iPhoneOSDaniel Dunbar2010-01-271-7/+20
| | | | | | versions to match gcc (which is matching linker changes). llvm-svn: 94640
* Driver/Darwin: Switch clang -triple synthesis to use computed target ↵Daniel Dunbar2010-01-271-31/+17
| | | | | | information. llvm-svn: 94639
* Driver/Darwin: Switch to using isTargetIPhoneOS where appropriate.Daniel Dunbar2010-01-271-4/+4
| | | | llvm-svn: 94637
* Simplify.Daniel Dunbar2010-01-261-14/+5
| | | | llvm-svn: 94503
* Driver/Darwin: Stuff iPhoneOS into environment portion of the (llvm/clang) ↵Daniel Dunbar2010-01-261-27/+33
| | | | | | triple instead of keying off architecture. Also, fix version define to properly include the revision/micro component of the version number. llvm-svn: 94487
* Driver: Fix fallback to gcc to -c instead of -S if trying to generate an LLVM bcDaniel Dunbar2010-01-251-7/+16
| | | | | | file. llvm-svn: 94463
* Driver/Darwin/ld: Fix refacto, -force_cpusubtype_ALL should only be forwarded,Daniel Dunbar2010-01-221-2/+1
| | | | | | not always added. llvm-svn: 94149
* Driver/Darwin/ld: Factor out getDarwinArchName, for getting the "Darwin" archDaniel Dunbar2010-01-221-68/+5
| | | | | | name being used in an driver invocation. llvm-svn: 94139
* Driver/Darwin/ld: Eliminate AddDarwinSubArch, our linker invocation is going toDaniel Dunbar2010-01-221-17/+5
| | | | | | diverge from gcc anyway. llvm-svn: 94138
* Driver: Lift clang resource directory computation to the Driver object.Daniel Dunbar2010-01-201-9/+1
| | | | llvm-svn: 93971
* Darwin/ld: Don't pass '-weak_reference_mismatches non-weak' whenDaniel Dunbar2010-01-101-6/+0
| | | | | | -weak_reference_mismatches is not present, it is the default. llvm-svn: 93086
* implement -ftabstop=width, patch by Christian AdåkerChris Lattner2010-01-091-0/+5
| | | | llvm-svn: 93078
* Use -fno-math-errno by default, and remove the IsMathErrnoDefaultDan Gohman2010-01-081-4/+4
| | | | | | targethook, which is no longer being used. This fixes PR5971. llvm-svn: 92987
* Driver: Drop ToolChain::getHost()Daniel Dunbar2009-12-231-1/+1
| | | | llvm-svn: 91960
* ARM: Honor -mfpu= and set __VFP_FP__ and __ARM_NEON__ "correctly".Daniel Dunbar2009-12-211-0/+29
| | | | | | | | - Correctly is in quotes, because we are following what I interpreted as GCC's intent (which diverges from practice, naturally). - Also, fix the arch define for arm1136jf-s. llvm-svn: 91855
* Add ToolChain::getDriver() and use it instead of going through the HostInfoDaniel Dunbar2009-12-211-15/+14
| | | | | | object. llvm-svn: 91830
* ARM: Use front-end specific target features "soft-float" and ↵Daniel Dunbar2009-12-191-1/+19
| | | | | | "soft-float-abi" to communicate FP mode to target; __SOFTFP__ is set correctly now. llvm-svn: 91755
* clang -cc1: Rename -mcpu to -target-cpu to match other target options and ↵Daniel Dunbar2009-12-181-2/+2
| | | | | | not alias driver/backend option. llvm-svn: 91671
* Add -dwarf-debug-flags, which provides a way to embed the cc1 level options usedDaniel Dunbar2009-12-181-0/+14
| | | | | | | | to compile a translation unit into the debug info for that file. - Used by parts of Darwin build process to check compiler flags, etc. - <rdar://problem/7256886> clang does not emit AT_APPLE_flags llvm-svn: 91661
* Fix -fdollars-in-identifiers Clang translation.Daniel Dunbar2009-12-161-2/+2
| | | | llvm-svn: 91562
* implement PR5654: add -fassume-sane-operator-new, which is enabled by ↵Nuno Lopes2009-12-161-0/+4
| | | | | | | | default, and adds the malloc attribute to the global function new() and to the overloaded new operators. feel free to chage the name to this lengthy argument llvm-svn: 91543
* Driver: Pass -resource-dir to clang -cc1, since the driver presumably ↵Daniel Dunbar2009-12-151-1/+11
| | | | | | already found itself. llvm-svn: 91384
* Implement runtime checks for undefined behavior. WIP.Mike Stump2009-12-121-0/+1
| | | | | | | | | | | | | This implements a new flag -fcatch-undefined-behavior. The flag turns on additional runtime checks for: T a[I]; a[i] abort when i < 0 or i >= I. Future stuff includes shifts by >= bitwidth amounts. llvm-svn: 91198
* Make using '-fshort-enums' an error until it is actually implemented ↵Ted Kremenek2009-12-121-1/+2
| | | | | | (changes the ABI, so it is dangerous to not error out if we don't support it). Fixes <rdar://problem/7461006>. llvm-svn: 91191
* Driver: Switch to using "clang" "-cc1" instead of "clang-cc".Daniel Dunbar2009-12-111-2/+7
| | | | llvm-svn: 91174
* Unbreak clang-cc handling of -msoft-float / -mfloat-abi=, which I borked.Daniel Dunbar2009-12-081-3/+6
| | | | llvm-svn: 90873
* Enable '-analyzer-opt-analyze-nested-blocks' by default for testing.Ted Kremenek2009-12-071-0/+3
| | | | llvm-svn: 90812
* Shorten the help test for -no-canonical-prefixes, put it behind HelpHidden andRafael Espindola2009-12-071-3/+0
| | | | | | claim it in Driver.cpp instead of Tools.cpp. llvm-svn: 90777
* Add gcc's -no-canonical-prefixes option to clang.Rafael Espindola2009-12-041-0/+3
| | | | llvm-svn: 90577
* Fix Clang tool translation to forward -fvisibility as separate arguments, theDaniel Dunbar2009-12-031-2/+6
| | | | | | old syntax isn't supported. llvm-svn: 90469
* Driver: Add Command::Creator member variable, which tracks the tool that wasDaniel Dunbar2009-12-021-16/+16
| | | | | | used to create a particular command. llvm-svn: 90287
* Add CodeGenOptions::{SoftFloat,FloatABI}, and update the all the (far too ↵Daniel Dunbar2009-11-301-4/+4
| | | | | | many) places to use this instead of using the backend -soft-float and -float-abi= options. llvm-svn: 90127
* Always pass -fmessage-length using separate arguments.Daniel Dunbar2009-11-301-2/+2
| | | | llvm-svn: 90121
* Move LLVM backend options to explicit clang-cc / clang -cc1 options, which ↵Daniel Dunbar2009-11-291-25/+28
| | | | | | we then manually pass to the command line library; eventually the latter grossness should be fixed by a real API when creating the target machine. llvm-svn: 90063
* clang-cc: Change -fsigned-char=0 to -fno-unsigned-char and pass -pic-level ↵Daniel Dunbar2009-11-291-5/+3
| | | | | | using separate args. llvm-svn: 90054
* What the FIXMEs want, the FIXMEs shall have.Daniel Dunbar2009-11-251-53/+28
| | | | llvm-svn: 89861
* Don't pass -fexceptions=0 (it is the default).Daniel Dunbar2009-11-251-8/+4
| | | | llvm-svn: 89853
* Fix refacto, gcc's cc1 needs to see --output-pch=, which is not just an aliasDaniel Dunbar2009-11-211-1/+1
| | | | | | for -output-pch=. llvm-svn: 89534
* Pass '-mcpu' 'FOO' instead of '-mcpu=FOO'.Daniel Dunbar2009-11-201-2/+3
| | | | llvm-svn: 89498
* Standardize Driver translation to call clang-cc using '-foo' form instead of ↵Daniel Dunbar2009-11-201-16/+16
| | | | | | '--foo'. llvm-svn: 89497
* Switch -f{builtin,math-errno,rtti} and -analyzer-purge-dead to -...no... ↵Daniel Dunbar2009-11-191-6/+5
| | | | | | variants instead of using llvm::cl::init(true) arguments. llvm-svn: 89315
* Driver: ArgList doesn't depend on Options.h anymore.Daniel Dunbar2009-11-191-0/+1
| | | | llvm-svn: 89313
* Driver: Switch to using explicit {getLast,has}ArgNoClaim functions instead ↵Daniel Dunbar2009-11-191-1/+1
| | | | | | | | of taking a Claim argument. - Most driver code always claims, and bool arguments don't play nice with the overloads. llvm-svn: 89308
* Use Option::matches instead of direct ID comparison.Daniel Dunbar2009-11-191-5/+5
| | | | llvm-svn: 89305
* Fix passing stdc++ correctly in the FreeBSD toolchain support, Credit to ↵Edward O'Callaghan2009-11-181-4/+2
| | | | | | Roman Divacky. llvm-svn: 89205
* Added block type introspection support.David Chisnall2009-11-171-1/+3
| | | | | | As per Fariborz's suggestion, committed now but can be reverted later if the used flag is problematic for Apple. llvm-svn: 89134
* Add -fblocks, -stack-protector, and -fobjc-nonfragile-abi defaulting to driver,Daniel Dunbar2009-11-171-19/+23
| | | | | | | instead of using getDefaultLangOptions. - Remove unused -fobjc-tight-layout while at it. llvm-svn: 89065
* Move -fnext-runtime defaulting to driver (and change clang-cc default toDaniel Dunbar2009-11-171-2/+6
| | | | | | -fnext-runtime), instead of using getDefaultLangOptions. llvm-svn: 89058
* Move -fms-extensions defaulting to driver, instead of using ↵Daniel Dunbar2009-11-171-2/+7
| | | | | | getDefaultLangOptions. llvm-svn: 89057
OpenPOWER on IntegriCloud