summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Driver: Forward remaining -f options to clang manually.Daniel Dunbar2009-04-072-19/+36
| | | | | | | - Groups are really just intended to hold inherent structure of the options, not be abused for individual tool argument translation. llvm-svn: 68554
* Driver: Only forward last instance of -mmacosx-version-min= andDaniel Dunbar2009-04-072-10/+12
| | | | | | | | -isysroot to clang. - Don't forward arbitrary -i* options to clang, just the ones we know about. llvm-svn: 68553
* Reduce code duplication on the TLS implementation.Rafael Espindola2009-04-0721-201/+239
| | | | | | | | | | This introduces a small regression on the generated code quality in the case we are just computing addresses, not loading values. Will work on it and on X86-64 support. llvm-svn: 68552
* Now that we have __weak defined as attribute in all modes,Fariborz Jahanian2009-04-072-1/+16
| | | | | | we must not issue gc-specific errors in non-gc mode. llvm-svn: 68551
* Driver: Manually translate a number of -f with no- variants options toDaniel Dunbar2009-04-075-18/+40
| | | | | | | | | | | | clang. - We will eventually want some more driver infrastructre for this probably. - For now, the clang-cc interface stays relatively the same, but we don't accept multiple instances anymore, or the [no-] variants directly. llvm-svn: 68550
* Driver: Add default for ArgList::hasFlag and simplify implementation.Daniel Dunbar2009-04-072-7/+3
| | | | llvm-svn: 68549
* Allow us to ask for the access specifier of a translation unitDouglas Gregor2009-04-071-1/+2
| | | | llvm-svn: 68548
* Don't attempt to handle aggregate argument values in FastISel; letDan Gohman2009-04-072-1/+19
| | | | | | SelectionDAG do those. This fixes PR3955. llvm-svn: 68546
* PR2985 / <rdar://problem/6584986>Jim Grosbach2009-04-078-196/+320
| | | | | | | | | | When compiling in Thumb mode, only the low (R0-R7) registers are available for most instructions. Breaking the low registers into a new register class handles this. Uses of R12, SP, etc, are handled explicitly where needed with copies inserted to move results into low registers where the rest of the code generator can deal with them. llvm-svn: 68545
* Remove ccc now. Radar 6737767Mike Stump2009-04-071-1/+1
| | | | llvm-svn: 68544
* Propagte -fvisibility to objc2's class symbols.Fariborz Jahanian2009-04-073-13/+14
| | | | llvm-svn: 68543
* fix style.Torok Edwin2009-04-071-3/+3
| | | | llvm-svn: 68542
* Diagnose uses of function specifiers on declarations which don't declareEli Friedman2009-04-076-13/+42
| | | | | | functions. Fixes PR3941. llvm-svn: 68541
* Driver: Explicitly warn that -pg isn't supported (even though weDaniel Dunbar2009-04-072-3/+17
| | | | | | aren't failing the compilation). llvm-svn: 68540
* Driver: Add 'q' flag for options which shouldn't be reported as unused.Daniel Dunbar2009-04-075-6/+22
| | | | | | | - <rdar://problem/6756295> warning about '-dynamic' argument unused during compilation seems incorrect llvm-svn: 68535
* Use 'name' instead of 'href'.Bill Wendling2009-04-071-1/+1
| | | | llvm-svn: 68534
* CFG: when there is not continue or break target, mark the CFG as bad.Ted Kremenek2009-04-071-4/+11
| | | | llvm-svn: 68533
* Remove some dead code.Anders Carlsson2009-04-071-9/+5
| | | | llvm-svn: 68532
* Fix verification failure.Bill Wendling2009-04-071-1/+1
| | | | llvm-svn: 68531
* Offer an explanation of why building LLVM-GCC with objdir == srcdir doesn'tBill Wendling2009-04-071-2/+25
| | | | | | work. llvm-svn: 68530
* Another reformatting. No change in docs.Bill Wendling2009-04-071-317/+327
| | | | llvm-svn: 68528
* Fixes method name lookup when method appears inFariborz Jahanian2009-04-073-9/+48
| | | | | | | the base implementations (and not in current implementation). llvm-svn: 68527
* Fix broken test case. I have no idea why this ever worked.Anders Carlsson2009-04-071-3/+3
| | | | llvm-svn: 68526
* Driver: Fix a parsing bug where some options were matchedDaniel Dunbar2009-04-072-8/+19
| | | | | | | | | incorrectly. I'm blanking on the smartest way to write this search, but we should just do the right thing when we move to TableGen. - <rdar://problem/6761194> [driver] -Wextra-tokens isn't parsed correctly llvm-svn: 68525
* add a warning for this crazy case, as suggested by Eli.Chris Lattner2009-04-071-1/+7
| | | | llvm-svn: 68524
* Another attempt at fixing PR2975.Torok Edwin2009-04-073-1/+32
| | | | | | Types can have references to eachother, so we can't just call destroy on them. llvm-svn: 68523
* Move the internal DeclContext data structures into a separate header. Douglas Gregor2009-04-077-118/+160
| | | | | | | | Simplify the addition of a case statement to a switch. Fix -print-stats for attribute-qualified types. llvm-svn: 68522
* Use %s in test, not hard coded name.Daniel Dunbar2009-04-071-3/+3
| | | | llvm-svn: 68521
* Fariborz points out that weak is now defined to the attribute evenChris Lattner2009-04-071-6/+6
| | | | | | in C mode. llvm-svn: 68520
* XFAIL a failing testDouglas Gregor2009-04-071-0/+1
| | | | llvm-svn: 68519
* fix comment to reflect the implementation I ended up settling on.Chris Lattner2009-04-071-1/+1
| | | | | | Thanks to Duncan for noticing this llvm-svn: 68518
* Tweak Sema::ActOnInstanceMessage() to look for a class method when dealing ↵Steve Naroff2009-04-073-2/+45
| | | | | | | | | | | | with qualified id's. This change is motivated by our desire to not support the "Class<foo>" idiom. Note that the change makes perfect sense (since all ObjC classes are also id/instances). This allow us to document a simple migration path...change "Class <foo>" to "id <foo>". This effects: - <rdar://problem/6761939> TASK: File source change radars for "qualified Class" errors - <rdar://problem/6761864> Protocol qualified Class is unsupported llvm-svn: 68517
* Update checker build.Ted Kremenek2009-04-071-1/+1
| | | | llvm-svn: 68516
* Fix typo in newly added test case.Steve Naroff2009-04-071-1/+1
| | | | llvm-svn: 68515
* Change the type of ObjC @ string constants (from NSConstantString->NSString).Steve Naroff2009-04-072-3/+44
| | | | | | This fixes <rdar://problem/6757102> clang type for @"xxx" is "NSConstantString *" (GCC type is "NSString *"). llvm-svn: 68514
* Handle use side of __objc_exception__ attribute; when using anDaniel Dunbar2009-04-073-28/+71
| | | | | | | exception with this attribute we don't need to emit a weak definition for the exception type information. llvm-svn: 68513
* *everyone* knows that __weak is not defined on linux :)Chris Lattner2009-04-071-1/+1
| | | | llvm-svn: 68512
* implement rdar://6762183. I'm not sure if it is more insane thatChris Lattner2009-04-072-1/+14
| | | | | | | GCC ignores macro definitions after \n's or that real code depends on this. llvm-svn: 68511
* Various fixes to symbols used for Obj-C x86_64 metadata.Daniel Dunbar2009-04-074-24/+94
| | | | | | | | | | | | | | | | | | | | | - Changed method names to match gcc (categories names still aren't mangled in). - Expose correct name for class and metadata symbols (although -fvisibility=hidden isn't yet correct). - Remove several things from llvm.used that didn't need to be there (I suspect this can still be trimmed). - Don't use asm-prefix extension for _objc_empty_{cache,vtable} (not needed). - Hide EH type class info with -fvisibility=hidden - Change setGlobal[Option]Visibility to not change the visibility of functions with internal linkage. llvm-svn: 68510
* Add test case.Ted Kremenek2009-04-071-0/+11
| | | | llvm-svn: 68505
* Remove hack from LiveVariables analysis where variables whose address are takenTed Kremenek2009-04-072-22/+38
| | | | | | | | | | | | are considered 'live'. This hack isn't needed anymore because we have a separation in the path-sensitive analyzer between variable names and bindings; the analyzer can continue to reason about the storage of a variable after its name is no longer directly referenced. Now the live variables analysis literally means "is this name live". Along this line, update the dead stores checker to explicitly look for variables whose values have escaped. llvm-svn: 68504
* define __va_copy unconditionally, but va_copy only in c99 or non-ansi mode.Chris Lattner2009-04-071-0/+8
| | | | | | | Fixes rdar://6759546, some code that actually used __va_copy because they thought it was "more portable". llvm-svn: 68503
* Remove GetLeakNode. This isn't the right approach.Ted Kremenek2009-04-071-57/+1
| | | | llvm-svn: 68502
* fix rdar://6762290, a crash compiling cxx filt with clang.Chris Lattner2009-04-072-3/+28
| | | | llvm-svn: 68500
* Remove period.Ted Kremenek2009-04-071-1/+1
| | | | llvm-svn: 68497
* Eagerly compute the leak location when a leak occurs at the end of a path.Ted Kremenek2009-04-071-62/+60
| | | | llvm-svn: 68496
* Removed some commented code.Ted Kremenek2009-04-071-16/+3
| | | | llvm-svn: 68495
* The __weak and __strong defines are common to all darwin targetsChris Lattner2009-04-072-14/+18
| | | | | | | | | | | and are even set in C mode. As such, move them to Targets.cpp. __OBJC_GC__ is also darwin specific, but seems reasonable to always define it when in objc-gc mode. This fixes rdar://6761450 llvm-svn: 68494
* Remove hack support for @try...@finally in source-level CFGs. The current hackTed Kremenek2009-04-071-8/+1
| | | | | | had too many false positives in the analyzer. llvm-svn: 68492
* Driver: More verbosity reduction.Daniel Dunbar2009-04-072-7/+39
| | | | | | | | | | | | | | - Ignore some more -W options and -[fm] options which we can somewhat safely ignore. - Recognize that -W is an alias for -Wextra W: -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wfour-char-constants -Winit-self -Wmissing-format-attribute -Wno-#warnings -Wno-comment -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wstrict-prototypes -Wunused-parameter f: -fconstant-cfstrings -fdollars-in-identifiers -finline -finline-functions -fno-inline -fno-keep-inline-functions -fno-strict-aliasing -fobjc-atdefs -fobjc-call-cxx-cdtors -fobjc-new-property -fstack-protector m: -mconstant-cfstrings -mfix-and-continue llvm-svn: 68487
OpenPOWER on IntegriCloud