summaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
Commit message (Collapse)AuthorAge
...
* Fix for PR4140: Add the start of a Linux toolchain (basically, just Eli Friedman2009-05-26
| | | | | | | | barely enough to get the given usage of -print-file-name working). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72412 91177308-0d34-0410-b5e6-96231b3b80d8
* (llvm up) Use llvm::Triple for storing target triples.Daniel Dunbar2009-05-22
| | | | | | | | - This commit has some messy stuff in it to extend string lifetimes, but that will go away once we switch to using the enum'd Triple interfaces. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72243 91177308-0d34-0410-b5e6-96231b3b80d8
* Reformat a commentDaniel Dunbar2009-05-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72046 91177308-0d34-0410-b5e6-96231b3b80d8
* Add --analyze-auto.Daniel Dunbar2009-05-06
| | | | | | | | | - Currently just an alias for --analyze, eventually we want to refit --analyze so that it is less automatic (i.e., does not force plist output and does not hard code the list of checks). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71056 91177308-0d34-0410-b5e6-96231b3b80d8
* DragonFly ToolChain definition for driver.Daniel Dunbar2009-05-02
| | | | | | | - Patch by Alex Hornung! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70635 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r70424. We don't need itDouglas Gregor2009-04-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70432 91177308-0d34-0410-b5e6-96231b3b80d8
* Add PCH version to the -v outputDouglas Gregor2009-04-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70424 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable PCH by defaultDouglas Gregor2009-04-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70339 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a header containing the Clang version; make the driver use thisDouglas Gregor2009-04-27
| | | | | | | | | | | Clang version value rather than hard-coding "1.0". Add PCH and Clang version information into the PCH file. Reject PCH files with the wrong version information. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70264 91177308-0d34-0410-b5e6-96231b3b80d8
* Turn PCH off by default, yet again. I'm happier about it this time, thoughDouglas Gregor2009-04-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70168 91177308-0d34-0410-b5e6-96231b3b80d8
* Trying turning on PCH by default yet again. We might actually a chance at ↵Douglas Gregor2009-04-26
| | | | | | success now git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70164 91177308-0d34-0410-b5e6-96231b3b80d8
* Turn off PCH by default, againDouglas Gregor2009-04-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70113 91177308-0d34-0410-b5e6-96231b3b80d8
* One more crazy try with PCH-by-defaultDouglas Gregor2009-04-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70112 91177308-0d34-0410-b5e6-96231b3b80d8
* Turn of PCH by default. I got the info I was looking forDouglas Gregor2009-04-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70106 91177308-0d34-0410-b5e6-96231b3b80d8
* Another shot at switching PCH on by default, now that we've cleaned up some ↵Douglas Gregor2009-04-26
| | | | | | bugs and improved performance. Will be reverted after Mr. Speedy gets done with it git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70099 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert my PCH change. I'm happy nowDouglas Gregor2009-04-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70018 91177308-0d34-0410-b5e6-96231b3b80d8
* Temporarily try to build with PCH by default. Revert this change onceDouglas Gregor2009-04-25
| | | | | | | we see what trouble it causes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70017 91177308-0d34-0410-b5e6-96231b3b80d8
* Look at the TMP environment variable as well.Daniel Dunbar2009-04-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69638 91177308-0d34-0410-b5e6-96231b3b80d8
* Also look at the TEMP environment variable as a place to put temporaryDaniel Dunbar2009-04-20
| | | | | | | files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69622 91177308-0d34-0410-b5e6-96231b3b80d8
* If defined, use TMPDIR environment variable as location for temporary files.Daniel Dunbar2009-04-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69609 91177308-0d34-0410-b5e6-96231b3b80d8
* Preliminary PCH support in the driverDouglas Gregor2009-04-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69410 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Allow using clang as a precompiler, even if it is anDaniel Dunbar2009-04-16
| | | | | | | unsupported arch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69322 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Add --help-hiddenDaniel Dunbar2009-04-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69171 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: CCC_ADD_ARGS could end up using dangling pointers.Daniel Dunbar2009-04-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68805 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Add 'q' flag for options which shouldn't be reported as unused.Daniel Dunbar2009-04-07
| | | | | | | | - <rdar://problem/6756295> warning about '-dynamic' argument unused during compilation seems incorrect git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68535 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Handle -dumpversion, this is used by some configurationDaniel Dunbar2009-04-04
| | | | | | | scripts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68418 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Automatically suppress warnings for duplicate versions ofDaniel Dunbar2009-04-04
| | | | | | | flags which were used for something. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68416 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Add -Qunused-arguments option to suppress driver "unusedDaniel Dunbar2009-04-03
| | | | | | | arguments" warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68410 91177308-0d34-0410-b5e6-96231b3b80d8
* Wire --version to normal -v version text.Daniel Dunbar2009-04-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68316 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Allow -ccc-gcc-name to specify the name/path to use whenDaniel Dunbar2009-04-01
| | | | | | | calling gcc in generic configurations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68260 91177308-0d34-0410-b5e6-96231b3b80d8
* Quick and dirty (!) fix to make sure we use powerpc in triples.Daniel Dunbar2009-04-01
| | | | | | | | | | - PR3922 - I have a clean solution for this in flight, but it may take a while to come to fruition so we'll take a quick fix for now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68241 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Implement basic --help text.Daniel Dunbar2009-03-31
| | | | | | | | | - PR3875. - <rdar://problem/6615249> [driver] ccc should support some form of --help git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68148 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Sketch FreeBSD tool chain.Daniel Dunbar2009-03-30
| | | | | | | - Patch by Ed Schouten! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68061 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Support -M and -MM.Daniel Dunbar2009-03-30
| | | | | | | | | - Not particularly elegant, but my hand is forced by gcc. Also, tweak -ccc-print-bindings output. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68027 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Make sure to claim -### before emitting "unused argument"Daniel Dunbar2009-03-29
| | | | | | | warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68018 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: -print-libgcc-file-name was searching wrong path list.Daniel Dunbar2009-03-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67837 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix searching for gcc, we only want executable files.Mike Stump2009-03-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67806 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Fix a number of option definition mismatches (flags instead ofDaniel Dunbar2009-03-26
| | | | | | | | | separate, or vice versa). Also, fix initialization of LinkingOutput variable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67757 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Print the correct target when printing the version.Daniel Dunbar2009-03-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67756 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Move GetReleaseVersion to static Driver::GetReleaseVersion method.Daniel Dunbar2009-03-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67754 91177308-0d34-0410-b5e6-96231b3b80d8
* hopefully fix VC++ build error.Chris Lattner2009-03-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67741 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Prep for tool chain specific argument translation.Daniel Dunbar2009-03-25
| | | | | | | | | | | | | | | | | - Lift ArgList to a base class for InputArgList and DerivedArgList. - This is not a great decomposition, but it does embed the translation into the type system, and keep things efficient for tool chains that don't want to do any translation. - No intended functionality change. Eventually I hope to get rid of tool chain specific translation and have each tool do the right thing, but for now this is the easiest way to match gcc precisely (which is good for testing). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67676 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Handle -flto, -O4, and tweak -emit-llvm to match llvm-gcc.Daniel Dunbar2009-03-24
| | | | | | | | | | | | | - -emit-llvm no longer changes what compilation steps are done. - -emit-llvm and -emit-llvm -S write output files with .o and .s suffixes, respectively. - <rdar://problem/6714125> clang-driver should support -O4 and -flto, like llvm-gcc git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67645 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Warn when 'clang' is used to compile a source file we couldDaniel Dunbar2009-03-24
| | | | | | | conceivably handle, but are defaulting to not using clang for. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67641 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Change default use of "clang" compiler.Daniel Dunbar2009-03-24
| | | | | | | | | | | | | | | | | | | | | | | - Don't default to using clang for C++ (use -ccc-clang-cxx to override). - Default to only using clang on i386 and x86_64 (use -ccc-clang-archs "" to override). - <rdar://problem/6712350> [driver] clang should not be used on powerpc by default - <rdar://problem/6705767> driver should default to -ccc-no-clang-cxx I plan to add a warning that we are not using the clang compiler for the given compilation so that users do not think clang is being used in situations it isn't. This change is motivated by the desire to be able to drop clang into a build and have things "just work", even if it happens to get used to compile C++ code or code for an architecture we don't support yet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67640 91177308-0d34-0410-b5e6-96231b3b80d8
* Move ToolChain::ShouldUseClangCompiler toDaniel Dunbar2009-03-24
| | | | | | | | Driver::ShouldUseClangCompiler. - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67639 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Setup file and program search paths in tool chains.Daniel Dunbar2009-03-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67529 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Implement 'missing argument' error.Daniel Dunbar2009-03-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67490 91177308-0d34-0410-b5e6-96231b3b80d8
* ccc/Driver: .s defaults to 'assembler-with-cpp' on Darwin.Daniel Dunbar2009-03-20
| | | | | | | | | | | - <rdar://problem/6669441> ccc doesn't handle assembler-with-cpp semantics correctly (but clang supports it) - This is sad, because it requires a fairly useless target hook. C'est la vie. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67418 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Add Arg::getAsString and use when dumping arguments toDaniel Dunbar2009-03-20
| | | | | | | | | diagnostics. - This ensures that the whole argument and values are printed, instead of just the option name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67366 91177308-0d34-0410-b5e6-96231b3b80d8