summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Use ld directly on linux. Changes from the previous try:Rafael Espindola2010-11-071-0/+12
| | | | | | | | | | | | | | | | | *) Try to detect as much as possible from the system itself, not the distro. This should make it easier to port to a new distro and more likely to work on a unknown one. *) The distro enum now doesn't include the arch. Just use the existing host detection support in LLVM. *) Correctly handle --sysroot. A small regression is that now clang will pass bitcode file to the linker. This is necessary for the gold plugin support to work. It might be better to detect this at configure/cmake time, but doing it in c++ first is a lot easier. llvm-svn: 118382
* Revert while I debug test failures :-(Rafael Espindola2010-11-031-12/+0
| | | | llvm-svn: 118150
* Switch clang to run ld directly on linux. I tested this on all the linuxRafael Espindola2010-11-031-0/+12
| | | | | | | | | | | | | | | | | | | | | | distros listed by running gcc main.o -o main g++ main.o -o main gcc main.o -o main -static g++ main.o -o main -static gcc f.o -o f.so -shared g++ f.o -o f.so -shared and comparing the ld line with the one created by clang. I also added -m32/m64 in distros that support it. While I tested many distros, there will always be more. If you are hit by this it should be somewhat easy to add your distro. If you are in a hurry, do revert this, but please inform how to detect you distro and the ld command lines produced by the above gcc invocations. Most distros have some patches on gcc :-( llvm-svn: 118149
* Driver/Darwin: Make the compilation object available in AddLinkArgs.Daniel Dunbar2010-09-091-1/+2
| | | | llvm-svn: 113549
* Visual Studio tools used on win32 hosts when targeting win32.Michael J. Spencer2010-08-211-0/+16
| | | | llvm-svn: 111748
* Run the assembler instead of gcc on Linux.Rafael Espindola2010-08-101-0/+16
| | | | llvm-svn: 110635
* Driver: Add Compilation::addCommand and switch tools to using it, now that weDaniel Dunbar2010-08-021-19/+0
| | | | | | don't have to deal with nested jobs. llvm-svn: 110015
* Driver: Eliminate now unnecessary tool hooks for whether they accept piped ↵Daniel Dunbar2010-08-021-44/+0
| | | | | | input/output. llvm-svn: 110012
* add driver support for minix, patch by Kees van ReeuwijkChris Lattner2010-07-071-0/+35
| | | | | | from PR7583 llvm-svn: 107788
* Driver: Add an explicit dsymutil action.Daniel Dunbar2010-06-041-0/+17
| | | | llvm-svn: 105474
* Driver: Add Tool::ShortName, intended to be a human readable name for the tool.Daniel Dunbar2010-05-221-23/+38
| | | | llvm-svn: 104416
* Driver: Add a tool definition for the Clang integrated assembler.Daniel Dunbar2010-05-201-0/+20
| | | | llvm-svn: 104280
* VISIBILITY_HIDDEN was renamed LLVM_LIBRARY_VISIBILITY.Duncan Sands2010-05-111-22/+22
| | | | llvm-svn: 103494
* Driver: Add a Tool::hasGoodDiagnostics hook, and use it to simplify logic forDaniel Dunbar2010-04-061-0/+5
| | | | | | | | deciding when we need to emit an extra "command failed" diagnostic. - This also fixes the case where we were emitting that extra diagnostics, even when using clang w/ the integrated assembler, which has good diagnostics. llvm-svn: 100529
* Add in some more MIPS command line options.Eric Christopher2010-03-021-0/+1
| | | | | | Patch by Oleksandr Tymoshenko! llvm-svn: 97544
* Driver: Add -[no-]integrated-as for clang.Daniel Dunbar2010-02-031-0/+1
| | | | | | | | | | | | | | | | | | | | - 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! :) llvm-svn: 95194
* Driver: Fix fallback to gcc to -c instead of -S if trying to generate an LLVM bcDaniel Dunbar2010-01-251-6/+12
| | | | | | file. llvm-svn: 94463
* Driver/Darwin/ld: Eliminate AddDarwinSubArch, our linker invocation is going toDaniel Dunbar2010-01-221-1/+0
| | | | | | diverge from gcc anyway. llvm-svn: 94138
* Remove ';' after method definition. Noticed by clang++, which one would thinkDaniel Dunbar2009-12-191-1/+1
| | | | | | | would have a higher respect for its own code. This is getting old, is this warning really adding value? llvm-svn: 91779
* ARM: Pass -mcpu to clang-cc based on -march= and -mcpu=.Daniel Dunbar2009-09-101-0/+1
| | | | llvm-svn: 81429
* Move Clang X86 cpu/feature argument translation into AddX86TargetArgs.Daniel Dunbar2009-09-091-0/+2
| | | | llvm-svn: 81390
* Add DarwinTool base class for all Darwin tools, and move AddDarwin[Sub]Arch ↵Daniel Dunbar2009-09-091-16/+21
| | | | | | there. llvm-svn: 81367
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-50/+50
| | | | llvm-svn: 81346
* Rename Darwin_X86 toolchain to just Darwin, this can support all platforms.Daniel Dunbar2009-09-041-2/+4
| | | | llvm-svn: 81016
* Remove unused argument.Daniel Dunbar2009-09-041-6/+2
| | | | llvm-svn: 81010
* Second half of, clang, AuroraUX toolchain support.Edward O'Callaghan2009-08-221-4/+38
| | | | llvm-svn: 79713
* OpenBSD support.Daniel Dunbar2009-06-291-0/+34
| | | | | | - Patch by Jonathan Gray! llvm-svn: 74453
* DragonFly ToolChain definition for driver.Daniel Dunbar2009-05-021-0/+34
| | | | | | - Patch by Alex Hornung! llvm-svn: 70635
* Preliminary PCH support in the driverDouglas Gregor2009-04-181-1/+4
| | | | llvm-svn: 69410
* Driver: Split out CPP specific options for clang so that we don't endDaniel Dunbar2009-04-081-0/+5
| | | | | | | | up adding them twice when running with -no-integrated-cpp or -save-temps. - <rdar://problem/6766636> -save-temps falls over with prefix headers llvm-svn: 68660
* Driver: Add freebsd::LinkDaniel Dunbar2009-04-011-0/+15
| | | | | | - Patch by Ed Schouten! llvm-svn: 68233
* Driver: Call 'as' directly on FreeBSD.Daniel Dunbar2009-03-311-0/+19
| | | | | | - Patch by Ed Schouten! llvm-svn: 68121
* Improve dependency file support.Daniel Dunbar2009-03-301-6/+8
| | | | | | | | | | | | - Rip out various bits of logic from clang-cc's dependency file gen, force driver to provide instead. - -MD output now goes to proper location <rdar://problem/6723948> clang -MD puts dep file in /tmp with wrong name - -M and -MM still don't work correctly. llvm-svn: 68022
* Driver: Finish porting Darwin::Preprocess and Compile port (stillDaniel Dunbar2009-03-291-8/+14
| | | | | | | unused, and lacking a test case). - ccc is now on death row, pending some more testing and bug fixes. llvm-svn: 68012
* Driver: Start porting Darwin::Preprocess and Compile implementationsDaniel Dunbar2009-03-291-0/+49
| | | | | | (currently unused). llvm-svn: 68003
* Driver: Add darwin::Link tool.Daniel Dunbar2009-03-261-0/+32
| | | | | | | - <rdar://problem/6717381> [driver] implement ld argument translation in new driver llvm-svn: 67760
* Driver: Add and use darwin::Assemble tool.Daniel Dunbar2009-03-201-1/+17
| | | | | | - Based on patch from Pieter de Bie; thanks! llvm-svn: 67379
* Driver: Add darwin::Lipo tool.Daniel Dunbar2009-03-201-0/+18
| | | | llvm-svn: 67355
* Driver: Lift out common GCC tool and implement generic GCC toolDaniel Dunbar2009-03-181-38/+31
| | | | | | | | argument translation. Also, stub out clang tool implementation a bit more. llvm-svn: 67185
* Driver: ConstructJob also needs to know the destination (where to putDaniel Dunbar2009-03-181-0/+6
| | | | | | its commands). llvm-svn: 67179
* Driver: Add a dash of const.Daniel Dunbar2009-03-181-6/+12
| | | | llvm-svn: 67170
* Driver: Stub out Tool::ConstructJob.Daniel Dunbar2009-03-181-0/+30
| | | | llvm-svn: 67169
* Driver: Add name to Tool (for testing/debugging) and move GCC_* toolsDaniel Dunbar2009-03-171-11/+14
| | | | | | into gcc:: namespace. llvm-svn: 67120
* Driver: GCC 4.0 isn't happy with VISIBILITY_HIDDEN on a namespace.Daniel Dunbar2009-03-171-7/+7
| | | | llvm-svn: 67110
* Driver: Stub out generic GCC tool selection (missed a file)Daniel Dunbar2009-03-171-0/+79
llvm-svn: 67109
OpenPOWER on IntegriCloud