summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
Commit message (Collapse)AuthorAgeFilesLines
* Makefiles: Set Clang CPP compiler flags in a single location, instead of ↵Daniel Dunbar2010-06-081-2/+0
| | | | | | scattered throughout the project Makefiles. llvm-svn: 105638
* Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile.Daniel Dunbar2010-06-081-2/+2
| | | | | | - This eliminates most dependencies on how Clang is installed relative to LLVM. llvm-svn: 105637
* Frontend: Add CodeGenAction support for handling LLVM IR.Daniel Dunbar2010-06-071-14/+74
| | | | | | | | | | | | | | | | | - This magically enables using 'clang -cc1' as a replacement for most of 'llvm-as', 'llvm-dis', 'llc' and 'opt' functionality. For example, 'llvm-as' is: $ clang -cc1 -emit-llvm-bc FOO.ll -o FOO.bc and 'llvm-dis' is: $ clang -cc1 -emit-llvm FOO.bc -o - and 'opt' is, e.g.: $ clang -cc1 -emit-llvm -O3 -o FOO.opt.ll FOO.ll and 'llc' is, e.g.: $ clang -cc1 -S -o - FOO.ll The nice thing about using the backend tools this way is that they are guaranteed to exactly match how the compiler generates code (for example, setting the same backend options). llvm-svn: 105583
* Frontend: Add FrontendAction support for handling LLVM IR inputs.Daniel Dunbar2010-06-074-2/+25
| | | | | | - These inputs follow an abbreviated execution path, but are still worth handling by FrontendAction so they reuse all the other clang -cc1 features. llvm-svn: 105582
* FrontendAction: Track active file kind.Daniel Dunbar2010-06-072-6/+9
| | | | llvm-svn: 105581
* Frontend: Rename hasASTSupport to hasASTFileSupport, which is more accurate.Daniel Dunbar2010-06-072-3/+4
| | | | llvm-svn: 105580
* Frontend: Move some initialization from CompilerInstance to FrontendAction, ↵Daniel Dunbar2010-06-073-25/+12
| | | | | | to parallel what is done for AST inputs. llvm-svn: 105579
* Frontend: Change FrontendAction::BeginSourceFile to take the input kind ↵Daniel Dunbar2010-06-073-3/+4
| | | | | | instead of an IsAST bool. llvm-svn: 105578
* Frontend: Lift InputKind enumeration to top level.Daniel Dunbar2010-06-074-64/+61
| | | | llvm-svn: 105577
* Frontend: Drop unnecessary TargetData argument to EmitBackendOutput, we alwaysDaniel Dunbar2010-06-072-21/+11
| | | | | | create modules which have target data strings. llvm-svn: 105576
* Frontend: Factor clang::EmitBackendOutput out of CodeGenAction.Daniel Dunbar2010-06-073-327/+359
| | | | llvm-svn: 105575
* Frontend: Add CodeGenOptions::SimplifyLibCalls, and eliminate LangOptions ↵Daniel Dunbar2010-06-072-5/+5
| | | | | | argument to BackendConsumer. llvm-svn: 105574
* Added AccessSpecDecl node.Abramo Bagnara2010-06-052-0/+17
| | | | llvm-svn: 105525
* Remember type source information for Objective C property declarations.John McCall2010-06-042-3/+3
| | | | llvm-svn: 105484
* Added a field to BlockDeclRefExpr for future use.Fariborz Jahanian2010-06-042-1/+3
| | | | | | No functionality change yet. llvm-svn: 105479
* Add ARM paths for debian. Not enough to bootstrap on a beagle board, butRafael Espindola2010-06-041-0/+2
| | | | | | moves us further. llvm-svn: 105468
* Restructure how we interpret block-literal declarators. Correctly handleJohn McCall2010-06-042-0/+2
| | | | | | | the case where we pick up block arguments from a typedef. Save the block signature as it was written, and preserve same through PCH. llvm-svn: 105466
* Hack in some really terrible C++ record PCH support that I need right now.John McCall2010-06-032-0/+48
| | | | | | | | This is required in order to test: The ASTImporter should set base classes after formally entering the definition. llvm-svn: 105401
* Fix undefined behavior, noticed by GCC 4.5. Patch by Dimitry Andric!Daniel Dunbar2010-06-021-2/+3
| | | | llvm-svn: 105329
* Alter the ExternalASTSource interface to permit by-name lookups. PCH ↵John McCall2010-06-011-16/+27
| | | | | | | | | | | | | | continues to bring in the entire lookup table at once. Also, give ExternalSemaSource's vtable a home. This is important because otherwise any reference to it will cause RTTI to be emitted, and since clang is compiled with -fno-rtti, that RTTI will contain unresolved references (to ExternalASTSource's RTTI). So this change makes it possible to subclass ExternalSemaSource from projects compiled with RTTI, as long as the subclass's home is compiled with -fno-rtti. llvm-svn: 105268
* Convert DeclNodes to use TableGen.Alexis Hunt2010-05-303-2/+3
| | | | | | | | The macros required for DeclNodes use have changed to match the use of StmtNodes. The FooFirst enumerator constants have been named firstFoo to match usage elsewhere. llvm-svn: 105165
* More PowerPC paths on DarwinDouglas Gregor2010-05-291-0/+3
| | | | llvm-svn: 105084
* Add C++ include paths for Darwin PowerPCDouglas Gregor2010-05-291-0/+7
| | | | llvm-svn: 105083
* add fedora 13 paths, patch by Hendrik Richter.Chris Lattner2010-05-291-0/+4
| | | | llvm-svn: 105082
* Roll back r104941.John McCall2010-05-282-2/+0
| | | | llvm-svn: 104990
* Let the backend decide which scheduler and register allocator to use.Jakob Stoklund Olesen2010-05-281-7/+0
| | | | | | | Currently, the backend uses the same policy, but it will soon switch to -regalloc=fast for -O0. llvm-svn: 104984
* Add a new attribute on records, __attribute__((adl_invisible)), and defineJohn McCall2010-05-282-0/+2
| | | | | | | | | | | | the x86-64 __va_list_tag with this attribute. The attribute causes the affected type to behave like a fundamental type when considered by ADL. (x86-64 is the only target we currently provide with a struct-based __builtin_va_list) Fixes PR6762. llvm-svn: 104941
* Frontend: Sprinkle in some C++ header paths for ARM/Darwin. Also, don't add x86Daniel Dunbar2010-05-281-4/+19
| | | | | | | | paths on non-x86. I really detest this file. llvm-svn: 104921
* Add several more predefines from modern versions of GCC.Dan Gohman2010-05-281-0/+27
| | | | llvm-svn: 104906
* MemoryBuffer::getSTDIN may return a null pointer if an error occurs.Dan Gohman2010-05-271-1/+1
| | | | llvm-svn: 104856
* Driver: Add clang -cc1 -mrelax-all option, which sets relaxes all ↵Daniel Dunbar2010-05-272-0/+6
| | | | | | instructions when using -integrated-as. llvm-svn: 104807
* AST: Add AlignMac68kAttr, not yet used.Daniel Dunbar2010-05-272-0/+4
| | | | llvm-svn: 104800
* AST: Rename PragmaPackAttr to MaxFieldAlignmentAttr, which is more accurate.Daniel Dunbar2010-05-272-3/+3
| | | | llvm-svn: 104795
* Predefine the '__clang_analyzer__' macro when using '-analyze'.Ted Kremenek2010-05-261-0/+5
| | | | llvm-svn: 104742
* Only enable code patterns (e.g., try { statements } catch (...) {Douglas Gregor2010-05-252-2/+8
| | | | | | statements }) in the code-completion results if explicitly requested. llvm-svn: 104637
* Driver/Frontend: Add -emit-codegen-only, for running irgen + codegen but not theDaniel Dunbar2010-05-252-0/+11
| | | | | | .s printer or .o writer. llvm-svn: 104623
* Refactoring of block-pointer type rewrite.Fariborz Jahanian2010-05-251-37/+25
| | | | llvm-svn: 104614
* Patch to rewrite block pointers as arguments toFariborz Jahanian2010-05-251-2/+57
| | | | | | methods. (Radar 7987817). llvm-svn: 104608
* when too many errors are emitted, and we produce:Chris Lattner2010-05-241-0/+2
| | | | | | | | fatal error: too many errors emitted, stopping now [-ferror-limit=] Tell the user that this is controlled with -ferror-limit=, like above. llvm-svn: 104528
* Fix a rewriting bug where a local static objective-cFariborz Jahanian2010-05-241-0/+6
| | | | | | pointer is copied into a block. Fixes radar 7924024. llvm-svn: 104526
* Fix an objective-c rewriter bug when pre-processed file's Fariborz Jahanian2010-05-241-3/+5
| | | | | | | class declaration's @end is not followed by a new-line. (radar 7946975). llvm-svn: 104512
* Propagate access specifiers to anonymous union members nested within classes.John McCall2010-05-211-1/+2
| | | | | | Fixes <rdar://problem/7987650>. llvm-svn: 104376
* Driver: Move some argument lookup utilities into driver::ArgList.Daniel Dunbar2010-05-201-72/+43
| | | | llvm-svn: 104237
* Added basic source locations to Elaborated and DependentName types.Abramo Bagnara2010-05-192-2/+8
| | | | llvm-svn: 104169
* Add clang support for IBOutletCollection.Ted Kremenek2010-05-192-0/+13
| | | | llvm-svn: 104135
* Add support for Microsoft's __thiscall, from Steven Watanabe!Douglas Gregor2010-05-181-0/+1
| | | | llvm-svn: 104026
* "The attached patch allows clang to find the headersDouglas Gregor2010-05-181-9/+33
| | | | | | | for Visual Studio 2010. It also adds a registry search for the Express edition,", from Steven Watanabe! llvm-svn: 104015
* Add option '-analyzer-max-loop', which specifies the maximum Zhongxing Xu2010-05-182-1/+2
| | | | | | number of times the analyzer will go through a loop. llvm-svn: 104007
* Clean up some more uses of getAs<ObjCInterfaceType>() that Fariborz pointedJohn McCall2010-05-171-7/+7
| | | | | | out. The remaining ones are okay. llvm-svn: 103973
* Moved clang-builtin include dir position to immediately precede C includes.mike-m2010-05-161-21/+22
| | | | | | This aligns with how gcc compiler does things. llvm-svn: 103912
OpenPOWER on IntegriCloud