summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Tweak diag for <rdar://problem/5982579> [clang on xcode] (using ↵Steve Naroff2009-03-053-3/+9
| | | | | | arch=x86_64): synthesized property 'sdkPath' must either be named the same as a compatible ivar or must explicitly name an ivar. llvm-svn: 66162
* Fix <rdar://problem/6144382> [sema] gcc inconsistency w.r.t. forward ↵Steve Naroff2009-03-054-0/+43
| | | | | | protocol declarations. llvm-svn: 66161
* Add missing file.Duncan Sands2009-03-051-0/+1
| | | | llvm-svn: 66160
* prep work for copy/destroy helpers for block literals.Mike Stump2009-03-055-77/+101
| | | | llvm-svn: 66159
* (Hopefully) silence a warning.Owen Anderson2009-03-051-1/+1
| | | | llvm-svn: 66158
* Regenerate.Nick Lewycky2009-03-052-29/+134
| | | | llvm-svn: 66157
* Autodetect the availability of -export-dynamic in the linker.Nick Lewycky2009-03-054-25/+62
| | | | llvm-svn: 66156
* if we die in IR generation of a compound statement, include Chris Lattner2009-03-051-1/+4
| | | | | | | | | | | | | | it in the stack trace, giving us stuff like: Stack dump: 0. Program arguments: clang t.c -emit-llvm 1. <eof> parser at end of file 2. t.c:1:5: LLVM IR generation of declaration 'a' 3. t.c:1:9: LLVM IR generation of compound statement ('{}') 4. t.c:2:3: LLVM IR generation of compound statement ('{}') Abort llvm-svn: 66154
* rename PrettyStackTraceDecl -> PrettyStackTraceActionsDecl.Chris Lattner2009-03-059-31/+88
| | | | | | | | | | | | | | | | Introduce a new PrettyStackTraceDecl. Use it to add the top level LLVM IR generation stuff in Backend.cpp to stack traces. We now get crashes like: Stack dump: 0. Program arguments: clang t.c -emit-llvm 1. <eof> parser at end of file 2. t.c:1:5: LLVM IR generation of declaration 'a' Abort for IR generation crashes. llvm-svn: 66153
* Update checker build.Ted Kremenek2009-03-051-1/+1
| | | | llvm-svn: 66152
* remove unneeded forward decl.Chris Lattner2009-03-051-1/+0
| | | | llvm-svn: 66151
* if we crash while parsing a block literal, include it.Chris Lattner2009-03-051-1/+5
| | | | llvm-svn: 66150
* fix eof checkChris Lattner2009-03-051-1/+6
| | | | llvm-svn: 66149
* When the parser is live, print out the location and spelling of its current ↵Chris Lattner2009-03-053-22/+55
| | | | | | | | | | | | | | | | | token. For example: Stack dump: 0. Program arguments: clang t.cpp 1. t.cpp:4:8: current parser token: ';' 2. t.cpp:3:1: parsing struct/union/class body 'x' Abort It is weird that the parser is always "underneath" any parse context actions, but the parser is created first. llvm-svn: 66148
* Be more careful about choosing restore points when doing restore folding. ↵Owen Anderson2009-03-051-5/+28
| | | | | | This fixes some subtle miscompilations. llvm-svn: 66147
* finish comment.Chris Lattner2009-03-051-1/+1
| | | | llvm-svn: 66146
* Daniel wanted the stack printed upside down. Perhaps heChris Lattner2009-03-051-6/+14
| | | | | | | | | | | | | feels a kinship to machine stacks that grow down. Now we get stuff like this: Stack dump: 0. Program arguments: clang clang_crash_Iw2Osj.mi 1. /Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/include/xmmintrin.h:624:1: parsing function body '_mm_cvtpi16_ps' 2. /Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/include/xmmintrin.h:624:1: in compound statement ('{}') Abort llvm-svn: 66145
* indicate what the program args line is.Chris Lattner2009-03-051-1/+3
| | | | llvm-svn: 66144
* switch this message back to only being in -debug mode.Chris Lattner2009-03-051-1/+1
| | | | llvm-svn: 66143
* Driver: Basic argument parsing.Daniel Dunbar2009-03-056-23/+114
| | | | | | | | - Add Driver::ParseArgStrings. - Store values directly in CommaJoinedArg to support simple access. - Add FlagArg class. llvm-svn: 66142
* When allocating stubs, keep track of which Functions are referencing the stub.Nate Begeman2009-03-051-17/+120
| | | | | | | | This invalidates the stubs in the resolver map when they are no longer referenced, and should the JIT memory manager ever pick up a deallocateStub interface, the JIT could reclaim the memory for unused stubs as well. llvm-svn: 66141
* Do not split edges to EH landing pads. It will cause code size explosion.Evan Cheng2009-03-052-0/+40
| | | | llvm-svn: 66140
* Test case: When using RegionStore with the retain/release checker, stop ↵Ted Kremenek2009-03-051-0/+17
| | | | | | tracking objects assigned to self's ivar. llvm-svn: 66139
* Add test case for RegionStore's tracking of the ivars of 'self'.Ted Kremenek2009-03-051-0/+44
| | | | llvm-svn: 66136
* Add initial support for tracking ivars, with special handling for ivars of ↵Ted Kremenek2009-03-051-8/+33
| | | | | | 'self'. llvm-svn: 66133
* Make IRGen compatible with declaring a function with incomplete Eli Friedman2009-03-052-5/+16
| | | | | | | return/argument types. (The generated IR isn't ideal, but we can't really do better in general.) llvm-svn: 66132
* Add 'cast<>' to remove an extra function call and dynamic cast.Ted Kremenek2009-03-051-2/+2
| | | | llvm-svn: 66131
* More fixes in cast logic.Ted Kremenek2009-03-051-16/+9
| | | | llvm-svn: 66130
* Fix how livein live intervals are handled. Previously it could end at MBB ↵Evan Cheng2009-03-051-4/+9
| | | | | | start. Sorry, no small test case possible. llvm-svn: 66129
* Initial implementation of CodeGen for incomplete function types; fixes Eli Friedman2009-03-053-4/+65
| | | | | | | PR3688. (The FIXME is a rather big performance issue, but it only affects code using this feature, which is relatively rare.) llvm-svn: 66128
* GRExprEngine: Polish up handling of casting integer constants to pointers ↵Ted Kremenek2009-03-052-2/+15
| | | | | | and back. llvm-svn: 66127
* Avoid dispose calls when only doing gc.Mike Stump2009-03-051-1/+1
| | | | llvm-svn: 66126
* Fix regression in transparent translation of nonloc::ConcreteInto to ↵Ted Kremenek2009-03-051-10/+17
| | | | | | loc::ConcreteInt. llvm-svn: 66125
* Include struct context info for parser/sema crashes. ThisChris Lattner2009-03-052-0/+8
| | | | | | | | | | | | | | | | | | | | | gives us: Stack dump: 0. using-directive.cpp:26:16: in compound statement ('{}') 1. using-directive.cpp:26:16: parsing function body 'A::K1::foo' 2. using-directive.cpp:25:3: parsing struct/union/class body 'A::K1' 3. using-directive.cpp:5:1: parsing namespace 'A' 4. clang using-directive.cpp Abort for code like: namespace A { ... class K1 { void foo() { <<crash>> llvm-svn: 66124
* Include namespace contexts in the virtual stack trace, so we get stuffChris Lattner2009-03-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | like this: Stack dump: 0. using-directive.cpp:9:14: in compound statement ('{}') 1. using-directive.cpp:9:14: parsing function body 'A::B::f' 2. using-directive.cpp:7:3: parsing namespace 'A::B' 3. using-directive.cpp:5:1: parsing namespace 'A' 4. clang using-directive.cpp Abort for testcase like like: namespace A { short i; namespace B { long i; void f() { <<crash>> llvm-svn: 66123
* Fix another case where debug info was affectingDale Johannesen2009-03-051-4/+17
| | | | | | | codegen. I convinced myself it was OK to skip all pointer bitcasts here too. llvm-svn: 66122
* include objc method decl contexts in stack trace of crash, e.g.:Chris Lattner2009-03-051-0/+5
| | | | | | | | | Stack dump: 0. message.m:53:13: in compound statement ('{}') 1. message.m:53:13: parsing Objective-C method 'xx' 2. clang message.m llvm-svn: 66121
* Set isMain bit for MainFile.Devang Patel2009-03-051-1/+3
| | | | llvm-svn: 66120
* Ignore the debug info intrinsics when looking for dependency through basic ↵Zhou Sheng2009-03-052-0/+130
| | | | | | block. llvm-svn: 66119
* When parsing a function body, add it to the crash stack, giving us somethingChris Lattner2009-03-055-2/+56
| | | | | | | | | | | | | like: Stack dump: 0. t.c:5:10: in compound statement ('{}') 1. t.c:3:12: in compound statement ('{}') 2. t.c:3:12: parsing function body 'foo' 3. clang t.c Abort llvm-svn: 66118
* Add codegen support for __block variables to call _Block_object_dispose as ↵Mike Stump2009-03-055-29/+55
| | | | | | necessary. llvm-svn: 66117
* Add comment to emphasize that the while body is empty.Bill Wendling2009-03-051-2/+2
| | | | llvm-svn: 66115
* fix some 80 col violations.Chris Lattner2009-03-051-4/+4
| | | | llvm-svn: 66114
* Simplify the interface to ParseFunctionStatementBody to not take Chris Lattner2009-03-054-8/+10
| | | | | | | locations that are the current tok loc. Note that inline C++ methods have a big fixme that could cause a crash. llvm-svn: 66113
* Fix another case where a dbg.declare meant somethingDale Johannesen2009-03-051-6/+13
| | | | | | had 2 uses instead of 1. llvm-svn: 66112
* Use LLVM type header rather than using stdint.h directly.Eli Friedman2009-03-051-1/+1
| | | | llvm-svn: 66111
* Fix message titleTed Kremenek2009-03-051-1/+1
| | | | llvm-svn: 66110
* update xcode projChris Lattner2009-03-051-0/+2
| | | | llvm-svn: 66109
* Include information about compound statements when crashing in sema or theChris Lattner2009-03-055-17/+85
| | | | | | | | | | parser. For example, we now print out: 0. t.c:5:10: in compound statement {} 1. t.c:3:12: in compound statement {} 2. clang t.c -fsyntax-only llvm-svn: 66108
* For now, do not track NSWindow objects and it's subclasses.Ted Kremenek2009-03-042-1/+15
| | | | llvm-svn: 66107
OpenPOWER on IntegriCloud