summaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
Commit message (Collapse)AuthorAge
...
* What the FIXMEs want, the FIXMEs shall have.Daniel Dunbar2009-11-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89861 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't pass -fexceptions=0 (it is the default).Daniel Dunbar2009-11-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89853 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix refacto, gcc's cc1 needs to see --output-pch=, which is not just an aliasDaniel Dunbar2009-11-21
| | | | | | for -output-pch=. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89534 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass '-mcpu' 'FOO' instead of '-mcpu=FOO'.Daniel Dunbar2009-11-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89498 91177308-0d34-0410-b5e6-96231b3b80d8
* Standardize Driver translation to call clang-cc using '-foo' form instead of ↵Daniel Dunbar2009-11-20
| | | | | | '--foo'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89497 91177308-0d34-0410-b5e6-96231b3b80d8
* Switch -f{builtin,math-errno,rtti} and -analyzer-purge-dead to -...no... ↵Daniel Dunbar2009-11-19
| | | | | | variants instead of using llvm::cl::init(true) arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89315 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: ArgList doesn't depend on Options.h anymore.Daniel Dunbar2009-11-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89313 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Switch to using explicit {getLast,has}ArgNoClaim functions instead ↵Daniel Dunbar2009-11-19
| | | | | | | | of taking a Claim argument. - Most driver code always claims, and bool arguments don't play nice with the overloads. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89308 91177308-0d34-0410-b5e6-96231b3b80d8
* Use Option::matches instead of direct ID comparison.Daniel Dunbar2009-11-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89305 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix passing stdc++ correctly in the FreeBSD toolchain support, Credit to ↵Edward O'Callaghan2009-11-18
| | | | | | Roman Divacky. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89205 91177308-0d34-0410-b5e6-96231b3b80d8
* Added block type introspection support.David Chisnall2009-11-17
| | | | | | | | As per Fariborz's suggestion, committed now but can be reverted later if the used flag is problematic for Apple. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89134 91177308-0d34-0410-b5e6-96231b3b80d8
* Add -fblocks, -stack-protector, and -fobjc-nonfragile-abi defaulting to driver,Daniel Dunbar2009-11-17
| | | | | | | instead of using getDefaultLangOptions. - Remove unused -fobjc-tight-layout while at it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89065 91177308-0d34-0410-b5e6-96231b3b80d8
* Move -fnext-runtime defaulting to driver (and change clang-cc default toDaniel Dunbar2009-11-17
| | | | | | -fnext-runtime), instead of using getDefaultLangOptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89058 91177308-0d34-0410-b5e6-96231b3b80d8
* Move -fms-extensions defaulting to driver, instead of using ↵Daniel Dunbar2009-11-17
| | | | | | getDefaultLangOptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89057 91177308-0d34-0410-b5e6-96231b3b80d8
* Move char-is-signed defaulting to driver, instead of usingDaniel Dunbar2009-11-17
| | | | | | getDefaultLangOptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89053 91177308-0d34-0410-b5e6-96231b3b80d8
* Add clang -mcpu=native support, patch by Roman Divacky, varioustweaks by me.Daniel Dunbar2009-11-14
| | | | | | | - We still need support for detecting the target features, since the name doesn't actually do a good job of decribing what the CPU supports (for LLVM). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88819 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix for FreeBSD toolchain in regards to CPP, Credit to Roman Divacky.Edward O'Callaghan2009-11-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86459 91177308-0d34-0410-b5e6-96231b3b80d8
* Adding -fshort-wchar option.John Thompson2009-11-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86167 91177308-0d34-0410-b5e6-96231b3b80d8
* Move -fcolor-diagnostics logic to driver.Daniel Dunbar2009-11-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86014 91177308-0d34-0410-b5e6-96231b3b80d8
* Move logic for selection -fmessage-length= to driver.Daniel Dunbar2009-11-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86013 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix indentation.Daniel Dunbar2009-11-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86011 91177308-0d34-0410-b5e6-96231b3b80d8
* Merge constant array and structures. This will create a global variables for ↵Tanya Lattner2009-11-04
| | | | | | arrays and structs that are constant and their initializer is constant. It is on by default but can be disable with the flag -fno-merge-all-constants. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85991 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement support for the -undef command line option, patch byChris Lattner2009-11-03
| | | | | | | Roman Divacky! PR5363 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85932 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix -pthread on dragonfly. Patch by Sascha Wildner.Mike Stump2009-10-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85679 91177308-0d34-0410-b5e6-96231b3b80d8
* Change the driver to do the Darwin triple mangling itself instead of forwardingDaniel Dunbar2009-10-30
| | | | | | -mmacosx-version-min and -miphoneos-version-min to clang-cc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85600 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove some obsolete or unnecessary FIXMEs.Daniel Dunbar2009-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85475 91177308-0d34-0410-b5e6-96231b3b80d8
* PR5328: Allow duplicatic -pedantic (and -pedantic-errors) options.Daniel Dunbar2009-10-29
| | | | | | - clang-cc doesn't care about their relative order with other -W options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85473 91177308-0d34-0410-b5e6-96231b3b80d8
* Kill off MakeFormattedString helper function.Daniel Dunbar2009-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85472 91177308-0d34-0410-b5e6-96231b3b80d8
* Reject -I- in driver instead of clang-cc.Daniel Dunbar2009-10-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85469 91177308-0d34-0410-b5e6-96231b3b80d8
* [llvm up]Douglas Gregor2009-10-29
| | | | | | | | | Switch a few ugly switch-on-string-literal constructs to use the new llvm::StringSwitch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85461 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix for PR4887, Credit to Jonathan Gray.Edward O'Callaghan2009-10-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85392 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename -nostdclanginc to -nobuiltininc.Rafael Espindola2009-10-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85116 91177308-0d34-0410-b5e6-96231b3b80d8
* AuroraUX toolchain should call GNU assembler not the Solaris assembler.Edward O'Callaghan2009-10-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84469 91177308-0d34-0410-b5e6-96231b3b80d8
* dynamic linker arg is incorrectly invoking gnu ld arg syntax instead of svr4 ↵Edward O'Callaghan2009-10-16
| | | | | | ld syntax in AuroraUX toolchain. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84266 91177308-0d34-0410-b5e6-96231b3b80d8
* fix -ansi in c++: it means -std=c++98Nuno Lopes2009-10-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84254 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Default to using PTH for C++ precompiled header support, PCH for C++Daniel Dunbar2009-10-15
| | | | | | | | isn't implemented yet. - <rdar://problem/7297571> Clang should use pretokenized headers for C++ PCH files git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84197 91177308-0d34-0410-b5e6-96231b3b80d8
* AuroraUX toolchain fixes.Edward O'Callaghan2009-10-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84176 91177308-0d34-0410-b5e6-96231b3b80d8
* -funit-at-a-time is the default however some current makefiles pass ↵Edward O'Callaghan2009-10-13
| | | | | | -fno-unit-at-a-time which is ignored by GCC, we should warn about this not error out. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83976 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the -nostdclanginc option to clang (the driver).Rafael Espindola2009-10-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83377 91177308-0d34-0410-b5e6-96231b3b80d8
* Set __EXCEPTIONS by checking on darwin's triple.Fariborz Jahanian2009-10-01
| | | | | | | | Patch by Rafael Espindola. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83209 91177308-0d34-0410-b5e6-96231b3b80d8
* Move the "needs exception support" logic to clang. This also fixesRafael Espindola2009-10-01
| | | | | | | | | -fno-exceptions in C++ code. We used to always define __EXCEPTIONS in C++. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83199 91177308-0d34-0410-b5e6-96231b3b80d8
* Turn on 'RegionStore' as the default store manager both for 'clang ↵Ted Kremenek2009-09-25
| | | | | | --analyze' and 'scan-build'. Leave 'BasicStore' as the default store manager in 'clang-cc'. While there are still known warts with RegionStore, it's ready to be tested by general users. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82752 91177308-0d34-0410-b5e6-96231b3b80d8
* Split Darwin toolchain into Clang and GCC Darwin toolchains with a common base.Daniel Dunbar2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82213 91177308-0d34-0410-b5e6-96231b3b80d8
* Lift AddLinkRuntimeLibArgs into Darwin tool chain.Daniel Dunbar2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82212 91177308-0d34-0410-b5e6-96231b3b80d8
* Move isMacosxVersionLT helpers to Darwin tool chain.Daniel Dunbar2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82211 91177308-0d34-0410-b5e6-96231b3b80d8
* Lift getMacosxVersionMin out into Darwin ToolChain.Daniel Dunbar2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82210 91177308-0d34-0410-b5e6-96231b3b80d8
* Lift AddLinkerSearchPaths() into Darwin tool chain.Daniel Dunbar2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82209 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename a variable to match its semantics.Daniel Dunbar2009-09-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82208 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Change -O to mean -O2, -O1 is meaningless.Daniel Dunbar2009-09-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82131 91177308-0d34-0410-b5e6-96231b3b80d8
* We don't need a -compile-ast clang-cc action, we can just use -S.Daniel Dunbar2009-09-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82105 91177308-0d34-0410-b5e6-96231b3b80d8