summaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
Commit message (Collapse)AuthorAge
...
* Driver: Fix infinite loop and wrong message on invalid -ccc-clang-arch argument.Daniel Dunbar2010-02-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95848 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Add -[no-]integrated-as for clang.Daniel Dunbar2010-02-03
| | | | | | | | | | | | | | | | | | | | - Requires backend support, which only exists for i386--darwin currently. No 'as' required: -- ddunbar@ozzy:tmp$ cat t.c int main() { return 42; } ddunbar@ozzy:tmp$ clang -m32 -integrated-as t.c ddunbar@ozzy:tmp$ ./a.out; echo $? 42 ddunbar@ozzy:tmp$ -- The random extra whitespace is how you know its working! :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95194 91177308-0d34-0410-b5e6-96231b3b80d8
* ASTUnit: Don't check that input files exist when parsing ASTs from the commandDaniel Dunbar2010-01-25
| | | | | | | line -- they may be remapped (fake) files. This is useful for testing parsing entirely from memory. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94395 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename getClangFullVendorVersion() to getClangFullVersion().Ted Kremenek2010-01-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94273 91177308-0d34-0410-b5e6-96231b3b80d8
* Move version string generation (e.g., "clang 1.1 ...") to ↵Ted Kremenek2010-01-22
| | | | | | libBasic/Version.cpp, getClangFullVendorVersion(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94235 91177308-0d34-0410-b5e6-96231b3b80d8
* (1) Rename getClangSubversionRevision() to getClangRevision(), andTed Kremenek2010-01-22
| | | | | | | | | | | | | | | | | | | have it return a StringRef instead of an integer (to be more VCS agnostic). (2) Add getClangFullRepositoryVersion(), which contains an amalgamation of the repository name and the revision. (3) Change PCH to only emit the string returned by getClangFullRepositoryVersion() instead of also emitting the value of getClangSubversionRevision() (which has been removed). This is functionally equivalent. More cleanup to version string generation pending... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94231 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename getClangSubversionPath() -> getClangRepositoryPath() and have it ↵Ted Kremenek2010-01-22
| | | | | | return a StringRef. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94213 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Lift clang resource directory computation to the Driver object.Daniel Dunbar2010-01-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93971 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix possible memory leak by using an OwningPtr.Ted Kremenek2010-01-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93834 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove some dead variables clang-analyzer found.Benjamin Kramer2009-12-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92162 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Fix '... -O4 -O0 ...', which was generating bitcode.Daniel Dunbar2009-12-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91962 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: When linking, don't warn about unused arguments which are obviously onlyDaniel Dunbar2009-12-22
| | | | | | | | used during compilation. - There is no easy way to define this group properly, unfortunately, and maybe this is a losing strategy. For now this is unambiguous more friendly, though. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91940 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove several .c_str() to be forward-compatible with StringRef.Jeffrey Yasskin2009-12-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90822 91177308-0d34-0410-b5e6-96231b3b80d8
* Shorten the help test for -no-canonical-prefixes, put it behind HelpHidden andRafael Espindola2009-12-07
| | | | | | | | claim it in Driver.cpp instead of Tools.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90777 91177308-0d34-0410-b5e6-96231b3b80d8
* Unbreak -ccc-cxx and -ccc-clang-cxx defaulting.Daniel Dunbar2009-12-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90629 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Switch -ccc-* options to using the standard options functionality.Daniel Dunbar2009-12-04
| | | | | | - I still want to get rid of them, but manually handling them isn't adding value. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90602 91177308-0d34-0410-b5e6-96231b3b80d8
* Add OptTable::PrintHelp.Daniel Dunbar2009-12-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90420 91177308-0d34-0410-b5e6-96231b3b80d8
* 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
* Factor out OptTable::ParseArgs, for parsing an entire argument vector.Daniel Dunbar2009-11-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89327 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
* Driver: Split OptTable out into OptTable.{h,cpp}Daniel Dunbar2009-11-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89283 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Rework OptTable to have no dependency on the options it manages.Daniel Dunbar2009-11-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89234 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow customization for the version line.Mike Stump2009-10-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83652 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide a common set of routines in Version.h that return SubversionDouglas Gregor2009-10-05
| | | | | | | | | branch/revision information. Use that information in the driver, rather than one-off branch/revision computation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83321 91177308-0d34-0410-b5e6-96231b3b80d8
* Push "clang-is-production" logic up to tools/driver, and make it hittable byDaniel Dunbar2009-09-22
| | | | | | defining the CLANG_IS_PRODUCTION Makefile variable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82583 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve driver error message when only running the preprocessor and an input isDaniel Dunbar2009-09-17
| | | | | | | | | | | | | | | | already preprocessed. -- ddunbar@giles:tmp$ touch t.i ddunbar@giles:tmp$ gcc -E t.i ddunbar@giles:tmp$ clang -E t.i clang: warning: t.i: previously preprocessed input unused when '-E' is present ddunbar@giles:tmp$ -- <rdar://problem/6813375> [driver] driver prints confusing message when running -E on preprocessed file git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82120 91177308-0d34-0410-b5e6-96231b3b80d8
* Change Get{File,Program}Path to return an std::string (instead of a sys::Path).Daniel Dunbar2009-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81389 91177308-0d34-0410-b5e6-96231b3b80d8
* Push bound architecture name into Compilation::getArgsForToolChain.Daniel Dunbar2009-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81365 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
* Validate arguments to -arch.Daniel Dunbar2009-09-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81281 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename HostInfo::getToolChain to HostInfo::CreateToolChain, and don't recreateDaniel Dunbar2009-09-08
| | | | | | the default tool chain when binding the default architecture. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81279 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify.Daniel Dunbar2009-09-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81277 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix ShouldUseClangCompiler to use llvm::Triple.Daniel Dunbar2009-09-08
| | | | | | - -1 FIXME, and fixes 'clang -arch armv4t ...', for example. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81276 91177308-0d34-0410-b5e6-96231b3b80d8
* Tweak & reflow comments, and delete trailing whitespace.Daniel Dunbar2009-09-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81275 91177308-0d34-0410-b5e6-96231b3b80d8
* Add -ccc-install-dir option for faking installation path.Daniel Dunbar2009-09-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81017 91177308-0d34-0410-b5e6-96231b3b80d8
* Update.Mike Stump2009-09-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80864 91177308-0d34-0410-b5e6-96231b3b80d8
* Add driver support for -emit-ast and AST compilation steps.Daniel Dunbar2009-09-01
| | | | | | - <rdar://problem/7185031> Add 'clang' option '-emit-ast' git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80678 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove arch normalization from Driver, this should be unnecessary now thatDaniel Dunbar2009-08-24
| | | | | | things have moved to llvm::Triple. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79902 91177308-0d34-0410-b5e6-96231b3b80d8
* API changes to match llvm ToT.Chris Lattner2009-08-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79868 91177308-0d34-0410-b5e6-96231b3b80d8
* Reenable clang using clang-cc for C++ and all archs by default.Daniel Dunbar2009-08-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79861 91177308-0d34-0410-b5e6-96231b3b80d8
* Temporarily switch clang back to not using clang-cc by default for C++, and onlyDaniel Dunbar2009-08-23
| | | | | | using clang-cc on i386 and x86_64. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79859 91177308-0d34-0410-b5e6-96231b3b80d8
* Second half of, clang, AuroraUX toolchain support.Edward O'Callaghan2009-08-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79713 91177308-0d34-0410-b5e6-96231b3b80d8
* Switch the driver back to always using clang-cc by default (for C++, andDaniel Dunbar2009-07-23
| | | | | | | | | | | | | regardless of the architecture). - This is a good default for development & testing; for example without this any tests using 'clang' in the test suite will fail on PowerPC, since the driver will avoid using clang. - We don't want to actually ship something built this way, but that should be handled via some sort of configuration file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76886 91177308-0d34-0410-b5e6-96231b3b80d8
* driver: Print --version on stdout, to match gcc.Daniel Dunbar2009-07-21
| | | | | | | - Patch by Jean-Daniel Dupas git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76632 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Move Compilation::Execute to Driver::ExecuteCompilation.Daniel Dunbar2009-07-01
| | | | | | | | | | - The Compilation is just a helper class, it shouldn't have that amount of logic in it. - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74634 91177308-0d34-0410-b5e6-96231b3b80d8
* OpenBSD support.Daniel Dunbar2009-06-29
| | | | | | | - Patch by Jonathan Gray! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74453 91177308-0d34-0410-b5e6-96231b3b80d8
* Stub out printing of the thread model with -v.Daniel Dunbar2009-06-16
| | | | | | | - Turns out libstdcxx greps for this in configure. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73582 91177308-0d34-0410-b5e6-96231b3b80d8
* Fake support for -print-multi-*Daniel Dunbar2009-06-16
| | | | | | | | - I think we will eventually need to support this for realz, and some build processes seem to depend on these options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73581 91177308-0d34-0410-b5e6-96231b3b80d8