summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Driver: Handle -dumpversion, this is used by some configurationDaniel Dunbar2009-04-041-0/+8
| | | | | | scripts. llvm-svn: 68418
* Driver: Automatically suppress warnings for duplicate versions ofDaniel Dunbar2009-04-041-1/+21
| | | | | | flags which were used for something. llvm-svn: 68416
* Driver: Add -Qunused-arguments option to suppress driver "unusedDaniel Dunbar2009-04-031-2/+3
| | | | | | arguments" warning. llvm-svn: 68410
* Wire --version to normal -v version text.Daniel Dunbar2009-04-021-0/+5
| | | | llvm-svn: 68316
* Driver: Allow -ccc-gcc-name to specify the name/path to use whenDaniel Dunbar2009-04-011-1/+6
| | | | | | calling gcc in generic configurations. llvm-svn: 68260
* Quick and dirty (!) fix to make sure we use powerpc in triples.Daniel Dunbar2009-04-011-3/+12
| | | | | | | | | - 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. llvm-svn: 68241
* Driver: Implement basic --help text.Daniel Dunbar2009-03-311-0/+72
| | | | | | | | - PR3875. - <rdar://problem/6615249> [driver] ccc should support some form of --help llvm-svn: 68148
* Driver: Sketch FreeBSD tool chain.Daniel Dunbar2009-03-301-0/+3
| | | | | | - Patch by Ed Schouten! llvm-svn: 68061
* Driver: Support -M and -MM.Daniel Dunbar2009-03-301-9/+12
| | | | | | | | - Not particularly elegant, but my hand is forced by gcc. Also, tweak -ccc-print-bindings output. llvm-svn: 68027
* Driver: Make sure to claim -### before emitting "unused argument"Daniel Dunbar2009-03-291-0/+3
| | | | | | warnings. llvm-svn: 68018
* Driver: -print-libgcc-file-name was searching wrong path list.Daniel Dunbar2009-03-271-1/+1
| | | | llvm-svn: 67837
* Fix searching for gcc, we only want executable files.Mike Stump2009-03-271-3/+4
| | | | llvm-svn: 67806
* Driver: Fix a number of option definition mismatches (flags instead ofDaniel Dunbar2009-03-261-2/+2
| | | | | | | | separate, or vice versa). Also, fix initialization of LinkingOutput variable. llvm-svn: 67757
* Driver: Print the correct target when printing the version.Daniel Dunbar2009-03-261-6/+6
| | | | llvm-svn: 67756
* Driver: Move GetReleaseVersion to static Driver::GetReleaseVersion method.Daniel Dunbar2009-03-261-0/+39
| | | | llvm-svn: 67754
* hopefully fix VC++ build error.Chris Lattner2009-03-261-0/+1
| | | | llvm-svn: 67741
* Driver: Prep for tool chain specific argument translation.Daniel Dunbar2009-03-251-5/+6
| | | | | | | | | | | | | | | | - 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). llvm-svn: 67676
* Driver: Handle -flto, -O4, and tweak -emit-llvm to match llvm-gcc.Daniel Dunbar2009-03-241-2/+9
| | | | | | | | | | | | - -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 llvm-svn: 67645
* Driver: Warn when 'clang' is used to compile a source file we couldDaniel Dunbar2009-03-241-3/+9
| | | | | | conceivably handle, but are defaulting to not using clang for. llvm-svn: 67641
* Driver: Change default use of "clang" compiler.Daniel Dunbar2009-03-241-12/+18
| | | | | | | | | | | | | | | | | | | | | | - 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. llvm-svn: 67640
* Move ToolChain::ShouldUseClangCompiler toDaniel Dunbar2009-03-241-0/+27
| | | | | | | Driver::ShouldUseClangCompiler. - No functionality change. llvm-svn: 67639
* Driver: Setup file and program search paths in tool chains.Daniel Dunbar2009-03-231-9/+2
| | | | llvm-svn: 67529
* Driver: Implement 'missing argument' error.Daniel Dunbar2009-03-221-9/+14
| | | | llvm-svn: 67490
* ccc/Driver: .s defaults to 'assembler-with-cpp' on Darwin.Daniel Dunbar2009-03-201-2/+4
| | | | | | | | | | - <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. llvm-svn: 67418
* Driver: Add Arg::getAsString and use when dumping arguments toDaniel Dunbar2009-03-201-6/+6
| | | | | | | | diagnostics. - This ensures that the whole argument and values are printed, instead of just the option name. llvm-svn: 67366
* Driver: Implement -print-search-dirs.Daniel Dunbar2009-03-201-0/+19
| | | | llvm-svn: 67362
* Driver: Temporary hack to allow -ccc-print-bindings to work (forDaniel Dunbar2009-03-201-1/+4
| | | | | | testing) even with -pipe on. llvm-svn: 67348
* Driver: Claim unused input arguments when emitting "input file unused"Daniel Dunbar2009-03-191-0/+2
| | | | | | diagnostic (to suppress more generic unused warning). llvm-svn: 67294
* Driver: Claim -arch options when pipelining, and claim arguments thatDaniel Dunbar2009-03-191-1/+2
| | | | | | | | | | | are forwarded to GCC. - The later is unfortunate, as it prevents us from generally warning about anything interesting on platforms that use a generic toolchain. However, we can't do much better without significantly complicating things, and generally we should have proper tool chain definitions. llvm-svn: 67293
* Driver: Handle "linker input" arguments.Daniel Dunbar2009-03-191-6/+9
| | | | | | | | | - Make InputInfo a variant of filename, pipe, input argument, nothing. - Leave a FIXME in InputInfo that this should be revisited. llvm-svn: 67292
* Driver: Forcibly disable pipe support until we can execute them, theDaniel Dunbar2009-03-181-1/+13
| | | | | | driver is functional without them. llvm-svn: 67254
* Driver: Delete the temporary files llvm::sys::Path::makeUniqueDaniel Dunbar2009-03-181-0/+4
| | | | | | sometimes leaves around. llvm-svn: 67253
* Driver: Cleanup temporary/result files.Daniel Dunbar2009-03-181-1/+1
| | | | llvm-svn: 67248
* Driver: Lookup program names using llvm::sys::Program::FindProgramByName Daniel Dunbar2009-03-181-0/+6
| | | | | | | | | if our usual methods fail. This isn't necessary for running the tool, but improves the accuracy of logging output. Also, have GCC tools lookup gcc program path. llvm-svn: 67243
* The eventual name of this will be clang, might as well start now.Mike Stump2009-03-181-1/+1
| | | | llvm-svn: 67241
* Driver: Support ToolChain specific path lists to search for files andDaniel Dunbar2009-03-181-2/+25
| | | | | | programs. llvm-svn: 67229
* Driver: Construct temporary file names.Daniel Dunbar2009-03-181-5/+17
| | | | | | - This is still suboptimal, but should at least be workable. llvm-svn: 67223
* Add revision information.Mike Stump2009-03-181-2/+7
| | | | llvm-svn: 67220
* Driver: Don't warn about unused arguments if there are Driver errorsDaniel Dunbar2009-03-181-2/+5
| | | | | | (brings code in line with diagnostic. llvm-svn: 67217
* Fix URL trimming for version information.Mike Stump2009-03-181-1/+1
| | | | llvm-svn: 67206
* Improve version number.Mike Stump2009-03-181-2/+13
| | | | llvm-svn: 67204
* Driver: Bug fix, derived .gch names sometimes started with "/".Daniel Dunbar2009-03-181-1/+4
| | | | llvm-svn: 67192
* Driver: Add assert and FIXME; arguments which act as linker inputsDaniel Dunbar2009-03-181-0/+3
| | | | | | (e.g., -filelist) are currently broken. llvm-svn: 67183
* Driver: ConstructJob also needs to know the destination (where to putDaniel Dunbar2009-03-181-1/+2
| | | | | | its commands). llvm-svn: 67179
* Driver: Print version on stderr to match [gc]cc.Daniel Dunbar2009-03-181-1/+1
| | | | llvm-svn: 67178
* Driver: Claim inputs when we bind the InputAction.Daniel Dunbar2009-03-181-0/+1
| | | | llvm-svn: 67174
* Driver: Don't claim inputs when pipelining, a tool should eventuallyDaniel Dunbar2009-03-181-1/+0
| | | | | | claim these. llvm-svn: 67171
* Driver: Add a dash of const.Daniel Dunbar2009-03-181-1/+0
| | | | llvm-svn: 67170
* Driver: Stub out Tool::ConstructJob.Daniel Dunbar2009-03-181-2/+3
| | | | llvm-svn: 67169
* Driver: Add two normalizations for powerpc.Daniel Dunbar2009-03-181-0/+2
| | | | | | - PR3830 llvm-svn: 67166
OpenPOWER on IntegriCloud