summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-cc/clang.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename clang.[cpp,h] to clang-cc.[cpp,h] to reflect the name change of theTed Kremenek2009-03-311-1714/+0
| | | | | | low-level frontend driver. llvm-svn: 68131
* (LLVM up) Update to use llvm::sys::getHostTriple().Daniel Dunbar2009-03-311-20/+3
| | | | | | | | - Always pass -triple to clang-cc (-arch will be removed). - clang-cc doesn't play guess work with the target triple anymore. llvm-svn: 68119
* Improve dependency file support.Daniel Dunbar2009-03-301-5/+5
| | | | | | | | | | | | - 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
* Push DeclGroup much farther throughout the compiler. Now the variousChris Lattner2009-03-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | productions (except the already broken ObjC cases like @class X,Y;) in the parser that can produce more than one Decl return a DeclGroup instead of a Decl, etc. This allows elimination of the Decl::NextDeclarator field, and exposes various clients that should look at all decls in a group, but which were only looking at one (such as the dumper, printer, etc). These have been fixed. Still TODO: 1) there are some FIXME's in the code about potentially using DeclGroup for better location info. 2) ParseObjCAtDirectives should return a DeclGroup due to @class etc. 3) I'm not sure what is going on with StmtIterator.cpp, or if it can be radically simplified now. 4) I put a truly horrible hack in ParseTemplate.cpp. I plan to bring up #3/4 on the mailing list, but don't plan to tackle #1/2 in the short term. llvm-svn: 68002
* remove TranslationUnit.Chris Lattner2009-03-281-2/+2
| | | | llvm-svn: 67914
* push more ASTContext goodness out through interfaces that useChris Lattner2009-03-281-6/+8
| | | | | | TranslationUnit llvm-svn: 67913
* remove TranslationUnit from ParseAST.Chris Lattner2009-03-281-6/+2
| | | | llvm-svn: 67911
* eliminate ReadASTBitcodeFileChris Lattner2009-03-281-1/+8
| | | | llvm-svn: 67903
* revert mike's patch which broke test/CodeGen/no-common.c.Chris Lattner2009-03-281-2/+1
| | | | llvm-svn: 67893
* simplify ParseAST by sucking -disable-free handling logic up intoChris Lattner2009-03-281-9/+18
| | | | | | clang.cpp llvm-svn: 67890
* Fixup -fcommon and -fno-common to be more gcc compatible.Mike Stump2009-03-271-1/+3
| | | | llvm-svn: 67863
* most of this is plumbing to get CompileOptions down into Chris Lattner2009-03-261-0/+6
| | | | | | | CodeGenModule. Once there, add a new NoCommon option to it and implement -fno-common. llvm-svn: 67735
* -arch ppc should change the triple to powerpc-foo not to ppc-foo.Chris Lattner2009-03-241-0/+6
| | | | | | | Similarly for ppc64. This should probably move into the driver, along with all the other target selection stuff other than -triple. llvm-svn: 67621
* Move <root>/Driver into <root>/tools/clang-cc.Daniel Dunbar2009-03-241-0/+1703
Again, I tried to update cmake but it is untested. llvm-svn: 67605
OpenPOWER on IntegriCloud