summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Driver.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* In addition to dumping preprocessed source, dump a script with the command lineChad Rosier2011-11-021-2/+23
| | | | | | | arguments that caused clang to crash. rdar://8314451 llvm-svn: 143573
* Stop disabling integrated assembler with -static. <rdar://problem/10175391>Bob Wilson2011-10-301-10/+2
| | | | | | | The integrated assembler seems to be working pretty well for -static code now, so remove the hacks to disable it. llvm-svn: 143304
* Use Triple.isOSDarwin() instead of comparing against Triple::Darwin.Bob Wilson2011-10-141-1/+3
| | | | | | | | | There are now separate Triple::MacOSX and Triple::IOS values for the OS so comparing against Triple::Darwin will fail to match those. Note that I changed the expected output for the Driver/rewrite-objc.m test, which had previously not been passing Darwin-specific options with the macosx triple. llvm-svn: 141944
* Rip out flags for controlling C++ "production mode" separately.Bob Wilson2011-10-041-4/+1
| | | | | | | This is old leftover cruft from the days when C++ was not yet ready for prime time. llvm-svn: 141063
* Revert my --working-directory option, which wasn't well thought through.Daniel Dunbar2011-09-301-8/+0
| | | | llvm-svn: 140889
* Driver: Fix two bad typos that were breaking the buildbots.Benjamin Kramer2011-09-281-2/+1
| | | | llvm-svn: 140682
* Check for GCC paths that have the target triple in them. This is required ↵David Chisnall2011-09-271-9/+22
| | | | | | for a lot of cross-compile toolchains. Also add some slightly better support for -B. llvm-svn: 140645
* Rename Diagnostic to DiagnosticsEngine as per issue 5397David Blaikie2011-09-251-2/+3
| | | | llvm-svn: 140478
* Driver: Use sys::Process::SetWorkingDirectory, for consistency.Daniel Dunbar2011-09-231-7/+2
| | | | llvm-svn: 140434
* Driver: Explicitly include <unistd.h>, libstdc++'s <map> pulls it in, libc++ ↵Benjamin Kramer2011-09-231-0/+6
| | | | | | | | doesn't. Also, on windows, chdir seems to live in <direct.h>. llvm-svn: 140414
* Driver: Add a --working-directory option which can be used to cause the compilerDaniel Dunbar2011-09-231-0/+7
| | | | | | | | | | to operate "as if" in a certain working directory. - For now, we just implement this by changing the actual working directory, but eventually we would want to handle this transparently. This is useful to avoid an extra exec() pair in some situations, and will be something we would want to support for more flexibility in using the Clang libraries. llvm-svn: 140409
* Removing a bunch of dead returns/breaks after llvm_unreachables.David Blaikie2011-09-231-1/+0
| | | | llvm-svn: 140407
* More missing header inclusions from llvm_unreachable migration.David Blaikie2011-09-231-0/+1
| | | | llvm-svn: 140369
* Switch assert(0/false) llvm_unreachable.David Blaikie2011-09-231-2/+2
| | | | llvm-svn: 140367
* [driver] Add support for the COMPILER_PATH environment variable, which adds theChad Rosier2011-09-141-2/+10
| | | | | | | specified path(s) to the list of prefix directories. rdar://10097714 llvm-svn: 139677
* [driver] When clang crashes, don't try to generate diagnostics (i.e., Chad Rosier2011-09-061-0/+17
| | | | | | preprocessor output) with multiple -arch options. llvm-svn: 139207
* Add the resource directory to the search path for Driver::GetFilePath,Peter Collingbourne2011-09-061-3/+8
| | | | | | | | | | | | | | as well as the search path printed by -print-search-dirs. The main purpose of this change is to cause -print-file-name=include to print the path to the include directory under Clang's resource directory, instead of the system compiler's include directory, whose header files Clang may not be able to parse. Some build scripts will do something like: $(CC) -nostdinc -I`$(CC) -print-file-name=include` to exclude all header paths except the compiler's. llvm-svn: 139127
* Cleanup r138662 per Ben and David's suggestions, thanks.Chad Rosier2011-08-261-14/+7
| | | | llvm-svn: 138670
* Make sure the std::string isn't deallocated prior to use. Many thanks to EliChad Rosier2011-08-261-5/+5
| | | | | | for catching this. llvm-svn: 138666
* [driver] When generating temporary files allow a prefix to be added. In manyChad Rosier2011-08-261-5/+17
| | | | | | | | cases we want the prefix to be the original file name less the suffix. For an input such as test.c to named temporary would be something like test-3O4Clq.o Part of <rdar://problem/8314451> llvm-svn: 138662
* [driver] Do not add -kext to the link command line when compiling with Chad Rosier2011-08-251-17/+0
| | | | | | | -fapple-kext. Fixes <rdar://problem/10013310>. Reverts <rdar://problem/7809940>. llvm-svn: 138564
* Add support for a verifier to the driver. Currently only verifies debugEric Christopher2011-08-231-2/+21
| | | | | | | | | | | output on darwin so is hard coded there. As a note this will need a little bit of refactoring in the class hierarchy to separate it out for different verifiers based on input type. Fixes rdar://8256258. llvm-svn: 138343
* [driver] Don't generate diagnostics (i.e., preprocessed source) if reading Chad Rosier2011-08-181-2/+14
| | | | | | | from stdin. This allows Eli and the like to continue with their debugging trickery without loss of limb (or car) on my part. :) llvm-svn: 137906
* Fix else style. No functionality change intended.Chad Rosier2011-08-171-1/+2
| | | | llvm-svn: 137896
* Fix typo.Eric Christopher2011-08-171-9/+9
| | | | llvm-svn: 137893
* [driver] When generating clang failure diagnostics, don't try to preprocess Chad Rosier2011-08-121-0/+14
| | | | | | inputs that aren't preprocessable. llvm-svn: 137532
* [driver] Refactor a bit to enable a few fixes when generating diagnostics. ↵Chad Rosier2011-08-121-14/+25
| | | | | | No functional change intended. llvm-svn: 137524
* Fix cmake for r136702 (at least for the most part). Chandler has been kind Chad Rosier2011-08-021-2/+2
| | | | | | | enough to offer to investigate the underlying issue. Thanks to Doug for his assistance as well. llvm-svn: 136719
* Temporarily revert parts of r136702 to make cmake builds happy.Chad Rosier2011-08-021-2/+2
| | | | | | Someone with more cmake experience want to throw me a bone? :) llvm-svn: 136709
* When the compiler crashes, the compiler driver now produces diagnostic Chad Rosier2011-08-021-9/+65
| | | | | | | | | information including the fully preprocessed source file(s) and command line arguments. The developer is asked to attach this diagnostic information to a bug report. rdar://9575623 llvm-svn: 136702
* The -fapple-kext flag was designed to "do the right thing" for building code forChad Rosier2011-07-271-28/+56
| | | | | | | | | | | use in KEXTs. However, users/Xcode still need to tweak the linker flags to do the right thing, and end up using -Xlinker, for example. Instead, have the driver "do the right thing" when linking when -fapple-kext is present on the command line, and we should have Xcode use -fapple-kext instead of setting other flags like -Xlinker -kext or -nodefaultlibs. rdar://7809940 llvm-svn: 136294
* Move ArrayRef to LLVM.h and eliminate now-redundant qualifiers, patch by Jon ↵Chris Lattner2011-07-231-2/+2
| | | | | | Mulder! llvm-svn: 135855
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-231-16/+16
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* Temporarily revert r135614 while I fix the cmake build.Chad Rosier2011-07-201-65/+9
| | | | llvm-svn: 135621
* When the compiler crashes, the compiler driver now produces diagnostic ↵Chad Rosier2011-07-201-9/+65
| | | | | | | | | information including the fully preprocessed source file(s) and command line arguments. The developer is asked to attach this diagnostic information to a bug report. llvm-svn: 135614
* Correctly handle sysroot prefix in -print-search-dirs. Makes libtoolJoerg Sonnenberger2011-07-161-1/+10
| | | | | | more happy on NetBSD. llvm-svn: 135344
* Prevent the -save-temps flag from modifying the input file if the input filenameChad Rosier2011-07-151-0/+9
| | | | | | | conflicts with a to be produced temp filename. rdar://9724657 llvm-svn: 135308
* Driver: Factor out IsUsingLTO helper function.Daniel Dunbar2011-06-211-7/+14
| | | | llvm-svn: 133542
* Identifiers with _CapitalLetter are reserved, so don't use them. Prefer theNick Lewycky2011-06-041-7/+7
| | | | | | | common C++ pattern of using the same name for the constructor argument as you do for the member. Noticed by inspection. llvm-svn: 132626
* A StringRef-ication of the DiagnosticIDs API and internals.Argyrios Kyrtzidis2011-05-251-3/+4
| | | | | | | | | Patch by Matthieu Monrocq with tweaks by me to avoid StringRefs in the static diagnostic data structures, which resulted in a huge global-var-init function. Depends on llvm commit r132046. llvm-svn: 132047
* Rename ContainsCompileAction to ContainsCompileOrAssembleAction toJoerg Sonnenberger2011-05-061-5/+5
| | | | | | properly reflect its behavior. llvm-svn: 130981
* Driver: Suppress some additional warnings with -Qunused-arguments.Daniel Dunbar2011-04-201-0/+4
| | | | llvm-svn: 129853
* Driver: Support -fno-lto.Daniel Dunbar2011-04-181-1/+2
| | | | llvm-svn: 129712
* refactor -ccc-gcc-name codeDylan Noblesmith2011-04-091-15/+1
| | | | | | | | | | | | Put the logic for deciding the default name for gcc/g++ in the only place that actually cares about it. This also pushes an ifdef out of the generic driver code to a little further down, when the target is actually known. Hopefully it can be changed into just a runtime check in the future. llvm-svn: 129212
* Driver: Sketch driver support for a CC_LOG_DIAGNOSTICS options, similar to theDaniel Dunbar2011-04-071-4/+6
| | | | | | | existing CC_PRINT_OPTIONS and CC_PRINT_HEADERS, which can be used to transparently capture the compiler diagnostics from a build. llvm-svn: 129082
* Move Driver::createInvocationFromArgs function to Frontend library to avoid ↵Argyrios Kyrtzidis2011-04-041-70/+0
| | | | | | | | dependency cycle between libFrontend and libDriver. llvm-svn: 128852
* Introduce Driver::createInvocationFromArgs used to create a ↵Argyrios Kyrtzidis2011-04-041-0/+70
| | | | | | CompilerInvocation from command-line args. llvm-svn: 128848
* Driver/Darwin: Dsymutil actions should put the dSYM adjacent to the output file.Daniel Dunbar2011-03-251-1/+7
| | | | llvm-svn: 128292
* switch a few Driver APIs to use llvm::ArrayRef, cleaning up code.Chris Lattner2011-03-231-7/+5
| | | | llvm-svn: 128142
* Memorize presence/absence of -nostdlib in Driver.Joerg Sonnenberger2011-03-211-2/+4
| | | | | | | Drop program paths on NetBSD (unused). Only include lib dir, if -nostdlib is absent. Use = to allow --sysroot to work. llvm-svn: 127995
OpenPOWER on IntegriCloud