summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Driver: Setup file and program search paths in tool chains.Daniel Dunbar2009-03-234-12/+90
| | | | llvm-svn: 67529
* Ad FreeBSD ARM target info.Daniel Dunbar2009-03-231-0/+15
| | | | | | - Patch by Ed Schoeten! llvm-svn: 67527
* analyzer: Fix embarrassing regression in BasicStore when invalidating structTed Kremenek2009-03-232-0/+8
| | | | | | values passed-by-reference to unknown functions. llvm-svn: 67519
* Minor Evaluate cleanup; add some boilerplate implementations to Eli Friedman2009-03-231-29/+26
| | | | | | Evaluate for __extension__ and __builtin_choose_expr. llvm-svn: 67506
* Minor enhancements to Evaluate.Eli Friedman2009-03-231-13/+25
| | | | llvm-svn: 67503
* Some minor fixes for complex IRGen.Eli Friedman2009-03-231-23/+16
| | | | llvm-svn: 67501
* Fix a subtle bug in CodeGen for the increment of a bitfield.Eli Friedman2009-03-231-5/+7
| | | | llvm-svn: 67499
* Add some FIXMEs relating to incomplete types.Eli Friedman2009-03-231-3/+14
| | | | llvm-svn: 67497
* Recognize rvalue references in C++03, but complain about them. This leads to ↵Sebastian Redl2009-03-231-2/+8
| | | | | | far better error recovery. llvm-svn: 67495
* Partial implementation of PR3342: break out pointer sign Eli Friedman2009-03-222-4/+37
| | | | | | | | incompatibilities in assignments from other pointer incompatibilities. Based off of the patch in PR3342. (This doesn't implement -Wno-pointer-sign, but I don't know the driver code very well.) llvm-svn: 67494
* Driver: Drop code for checking bounds in SeparateArg::render, thisDaniel Dunbar2009-03-221-3/+2
| | | | | | situation should never occur now that arguments are parsed correctly. llvm-svn: 67493
* Disallow catching exceptions by rvalue reference.Sebastian Redl2009-03-222-9/+24
| | | | llvm-svn: 67492
* Adjust isModifiableLvalue to give a slightly more useful diagnostic for Eli Friedman2009-03-221-10/+11
| | | | | | attempting to illegally modify a BlockDeclRefExpr. llvm-svn: 67491
* Driver: Implement 'missing argument' error.Daniel Dunbar2009-03-224-22/+46
| | | | llvm-svn: 67490
* Fix code to mark block variables as const to actually work. Fix Eli Friedman2009-03-222-6/+6
| | | | | | | | | | | isObjCObjectPointerType to work with qualified types. Adjust test for changes. If the SemaExpr changes are wrong or break existing code, feel free to delete the "ExprTy.addConst();" line and revert my changes to test/Sema/block-literal.c. llvm-svn: 67489
* Implement static_cast from lvalue to rvalue reference.Sebastian Redl2009-03-221-0/+39
| | | | llvm-svn: 67487
* Check that the return/argument types of calls are complete.Eli Friedman2009-03-221-0/+19
| | | | llvm-svn: 67485
* switch getBuiltinLibFunction to use the new GetOrCreateLLVMFunction Chris Lattner2009-03-222-36/+5
| | | | | | | | functionality, fixing a crash on the attached testcase. Eliminate the BuiltinFunctions cache, as it can contain dangling pointers. This fixes a bunch of valgrind errors on test/CodeGen/builtins.c llvm-svn: 67484
* emit aliases as the definitions fly by, don't bother deferring untilChris Lattner2009-03-222-82/+64
| | | | | | the end of the module. llvm-svn: 67482
* make alias definition logic more similar to functions/globals.Chris Lattner2009-03-221-12/+29
| | | | llvm-svn: 67481
* Fix build from r67476 and address the easy part of Doug's comments on rvalue ↵Sebastian Redl2009-03-222-8/+10
| | | | | | refs. llvm-svn: 67480
* fix PR3200 by making alias emission use the new infrastructure. Fold Chris Lattner2009-03-221-11/+17
| | | | | | some tests into the alias.c file. llvm-svn: 67479
* pull "runtime globals" into the same framework as other functions/global ↵Chris Lattner2009-03-225-162/+132
| | | | | | | | variables. No intended functionality change. llvm-svn: 67478
* Remove dead code.Eli Friedman2009-03-221-41/+0
| | | | llvm-svn: 67477
* Disallow abstract types where appropriate.Anders Carlsson2009-03-223-3/+79
| | | | llvm-svn: 67476
* fix a fixme: non-proto struct returning function definitions should be compiledChris Lattner2009-03-221-4/+7
| | | | | | | | | to something like: define void @bar(%struct.foo* noalias sret %agg.result) nounwind { instead of: define void @bar(%struct.foo* noalias sret %agg.result, ...) nounwind { llvm-svn: 67475
* fix PR3859: crash with 'cc -V'Nuno Lopes2009-03-221-2/+3
| | | | llvm-svn: 67472
* PTHManager::Create():Ted Kremenek2009-03-221-18/+16
| | | | | | | | | | | - Make the Diagnostic::Level for PTH errors to be specified by the caller clang (driver): - Set the PTHManager diagnostic level to "Diagnostic::Error" for -include-pth (a hard error) and Diagnostic::Warning for -token-cache (we can still proceed). llvm-svn: 67462
* Keep track of whether a class is abstract or not. This is currently only ↵Anders Carlsson2009-03-225-5/+93
| | | | | | used for the __is_abstract type trait. llvm-svn: 67461
* don't set the name of a call instruction to "call" in release-asserts Chris Lattner2009-03-222-11/+10
| | | | | | build. This shaves another 3% off. llvm-svn: 67460
* fix CreateTempAlloca to not set a name on the alloca for temporariesChris Lattner2009-03-223-6/+11
| | | | | | | | | in release-assert builds. For automatic variables, explicitly set a name with setName that does not make a temporary std::string. This speeds up -emit-llvm-only -disable-free on PR3810 by 4.6% llvm-svn: 67459
* set function/global names with setName instead of passing the name into theChris Lattner2009-03-221-2/+4
| | | | | | | ctor function. This avoids creating a temporary std::string for the name, speeding up the testcase in PR3810 by 3.8% llvm-svn: 67457
* fix some warnings in release-assert mode.Chris Lattner2009-03-221-9/+9
| | | | llvm-svn: 67456
* Fixup codegen for nested block literals so that we generateMike Stump2009-03-212-3/+5
| | | | | | copy_helpers and dispose_helpers as necessary for them. llvm-svn: 67453
* Fix a thinko in the pre-allocation strategy for structured initializerDouglas Gregor2009-03-211-2/+10
| | | | | | | | | | lists. The code wasn't accounting for the distinction between the top-level call to getStructuredSubobjectInit and later calls that occur deeper in the hierarchy. This problem manifested itself as over-allocation in cases where we have large arrays of small structures (<rdar://problem/6707362>). llvm-svn: 67452
* Issue error if variables are defined inside an objc class,Fariborz Jahanian2009-03-212-19/+13
| | | | | | category or protocol. llvm-svn: 67450
* now that all the decl reference and creation stuff is going through twoChris Lattner2009-03-212-41/+74
| | | | | | | very simple places, reimplement the deferred decl emission logic to not be O(N^2), fixing PR3810. llvm-svn: 67447
* fix a crash that could occur when a variable declaration became aChris Lattner2009-03-212-43/+61
| | | | | | function definition. llvm-svn: 67446
* simplify and cleanup global variable creation stuff to all go through oneChris Lattner2009-03-212-69/+74
| | | | | | code path. llvm-svn: 67445
* simplify management of llvm::Function creation to all go throughChris Lattner2009-03-212-64/+48
| | | | | | GetAddrOfFunction. This is simpler and more efficient. llvm-svn: 67444
* code cleanups, rename EmitForwardFunctionDefinition -> Chris Lattner2009-03-212-46/+47
| | | | | | | CreateFunctionPrototypeIR, though my next patch will eliminate it entirely. llvm-svn: 67443
* fix several problems with asm renaming, by pulling it into the mangling code:Chris Lattner2009-03-213-26/+18
| | | | | | | | 1. it wasn't applying to definitions, only declarations, e.g. int x __asm("foo") 2. multiple definitions were conflicting, they weren't getting merged. 3. the code was duplicated in several places. llvm-svn: 67442
* add some fixmesChris Lattner2009-03-211-10/+9
| | | | llvm-svn: 67441
* reduce redundant calls of getMangledName.Chris Lattner2009-03-211-8/+10
| | | | llvm-svn: 67440
* simplify some more code.Chris Lattner2009-03-212-28/+33
| | | | llvm-svn: 67439
* simplify and comment some code better. Make BindRuntimeGlobalsChris Lattner2009-03-213-26/+35
| | | | | | more optimistic that it will work (optimizing for the common case). llvm-svn: 67438
* random code cleanups.Chris Lattner2009-03-211-14/+12
| | | | llvm-svn: 67437
* remove obviously dead code: you can't bitcast a pointer to "Ty" (a function ↵Chris Lattner2009-03-211-5/+1
| | | | | | type). llvm-svn: 67436
* avoid making constant folding logic eliminate obviously dead bitcasts, ↵Chris Lattner2009-03-211-2/+7
| | | | | | | | speeding up PR3810 by ~2%. llvm-svn: 67434
* add an assertion for unreachable code.Chris Lattner2009-03-211-0/+1
| | | | llvm-svn: 67432
OpenPOWER on IntegriCloud