summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* turn an assert into a proper check, fixing crash on invalid here:Chris Lattner2010-04-101-2/+1
| | | | | | | | | | | $ llvm-as t.ll llvm-as: t.ll:1:6: error: expected 'type' after '=' %0 = = type { i32, float, float, double } ^ PR6810. llvm-svn: 100934
* improve haiku portability, patch by Paul Davey.Chris Lattner2010-04-101-0/+2
| | | | llvm-svn: 100933
* add attributes and module level asm to the ocaml bindings,Chris Lattner2010-04-105-33/+93
| | | | | | patch by Patrick Walton! llvm-svn: 100932
* Tweak test for portability.Daniel Dunbar2010-04-101-1/+1
| | | | llvm-svn: 100931
* Driver: Ignore -fobjc-gc and -fobjc-gc-only for platforms which don't ↵Daniel Dunbar2010-04-106-2/+46
| | | | | | support them. llvm-svn: 100930
* A bunch of string-related microoptimizations in Mangler.Benjamin Kramer2010-04-101-22/+22
| | | | llvm-svn: 100928
* Fix use after free. Incrementing an use_iterator after its user is erased is ↵Benjamin Kramer2010-04-101-3/+4
| | | | | | unsafe. llvm-svn: 100926
* When a member pointer is dereferenced, the class it points into must be ↵Sebastian Redl2010-04-104-4/+10
| | | | | | complete. Enforce this. llvm-svn: 100925
* Doug pointed out that we have a perfectly reasonable expression here toJohn McCall2010-04-101-2/+4
| | | | | | serve as a source of source locations for the can't-yet-mangle diagnostic. llvm-svn: 100924
* Diagnose more cases of initializing distinct members of an anonymous unionJohn McCall2010-04-105-32/+138
| | | | | | | member. Use a better diagnostic for this case. Also fix a bug with nested anonymous structs/unions for -Wreorder; this last was PR6575. llvm-svn: 100923
* Diagnose misordered initializers in constructor templates immediately instead ofJohn McCall2010-04-107-93/+107
| | | | | | | | | | when they're instantiated. Merge the note into the -Wreorder warning; it doesn't really contribute much, and it was splitting a thought across diagnostics anyway. Don't crash in the parser when a constructor's initializers end in a comma and there's no body; the recovery here is still terrible, but anything's better than a crash. llvm-svn: 100922
* rely even less on CallInst internalsGabor Greif2010-04-101-7/+6
| | | | llvm-svn: 100919
* do not rely on CallInst interna, use CallSite to access argumentsGabor Greif2010-04-101-1/+3
| | | | llvm-svn: 100918
* Driver/Darwin/x86: When linking, incorporate -L paths based on the path whereDaniel Dunbar2010-04-102-1/+8
| | | | | | | | | Clang is installed. This is designed to match gcc, and is important when installed in a non-standard location. - This is gross, but no worse than ever. It will die when we finally move to the compiler-rt based toolchain, any day now. llvm-svn: 100915
* Disable diag::err_file_modified on Win32 completely, until someone cares to fixDaniel Dunbar2010-04-101-10/+12
| | | | | | | it. PR6812. - This is another attempt at silencing annoying buildbot failures. llvm-svn: 100914
* Updated the edis build mechanism to allow for buildsSean Callanan2010-04-103-1/+31
| | | | | | | that do not build some (or all) of the targets that edis supports. llvm-svn: 100910
* Mangle some expressions with codegen implications but no mangling "overhead".John McCall2010-04-091-0/+12
| | | | llvm-svn: 100909
* Fix a typo and some indentation.Dan Gohman2010-04-091-2/+2
| | | | llvm-svn: 100908
* Provide an extremely unsatisfactory diagnostic (instead of crashing) whenJohn McCall2010-04-093-4/+23
| | | | | | | mangling an unknown expression kind. Also conveniently tells the user what kind of expression they should add to the mangler! llvm-svn: 100907
* When determining a canonical insert position, don't climb deeperDan Gohman2010-04-092-33/+103
| | | | | | | | into adjacent loops. Also, ensure that the insert position is dominated by the loop latch of any loop in the post-inc set which has a latch. llvm-svn: 100906
* Provide manglings for bool and character literal expressions. These areJohn McCall2010-04-092-0/+22
| | | | | | | | just integer-literal expressions with special case implementations in the AST. Fixes rdar://problem/7825453. llvm-svn: 100905
* Tidy whitespace.Bob Wilson2010-04-091-9/+8
| | | | llvm-svn: 100904
* When upgrading an Objective-C class from a forward declaration to aDouglas Gregor2010-04-092-0/+9
| | | | | | | full-fledged @interface, be sure that the declaration has the right lexical context. <rdar://problem/7827709> llvm-svn: 100903
* Only complain about explicit instantiations following explicitDouglas Gregor2010-04-093-12/+26
| | | | | | | | | | | | specializations when the explicit instantiation was... explicitly written, i.e., not the product of an explicit instantiation of an enclosing class. Fixes this spurious warning when Clang builds LLVM: /Volumes/Data/dgregor/Projects/llvm/lib/CodeGen/MachineDominators.cpp:22:1: warning: explicit instantiation of 'addRoot' that occurs after an explicit specialization will be ignored (C++0x extension) [-pedantic] llvm-svn: 100900
* If all the bit positions are not specified; do not decode the instructions.Johnny Chen2010-04-092-9/+15
| | | | | | | | | | We are bound to fail! For proper disassembly, the well-known encoding bits of the instruction must be fully specified. This also removes pseudo instructions from considerations of disassembly, which is a better design and less fragile than the name matchings. llvm-svn: 100899
* suck the propagating "has dynamic libs" check into a single makefile Chris Lattner2010-04-093-3/+9
| | | | | | variable TARGET_HAS_DYNAMIC_LIBS llvm-svn: 100896
* add minix support, patch by Kees van Reeuwijk! PR6797Chris Lattner2010-04-096-4/+27
| | | | llvm-svn: 100895
* clean this up, fix std::min ambiguity on some platforms.Chris Lattner2010-04-091-7/+5
| | | | llvm-svn: 100894
* Adding IPSCCP and Internalize passes to the C-bindingsWesley Peck2010-04-092-0/+15
| | | | llvm-svn: 100893
* Provide versions of the ARM eh_sjlj_setjmp instructions for non-VFP subtargetsBob Wilson2010-04-093-2/+37
| | | | | | | | | such that the non-VFP versions have no implicit defs of VFP registers. If any callee-saved VFP registers are marked as having been defined, the prologue/epilogue code will try to save and restore them. Radar 7770432. llvm-svn: 100892
* Remove copy of 'Optional' in Clang tree, and convert clients to use the one ↵Ted Kremenek2010-04-093-78/+11
| | | | | | now in the LLVM tree. llvm-svn: 100891
* Remove fixit for string literal comparison. Telling the user to use ↵Ted Kremenek2010-04-094-13/+3
| | | | | | | | | 'strcmp' is bad, and we don't have enough information to tell them how to use 'strncmp'. Instead, change the diagnostic to indicate they should use 'strncmp'. llvm-svn: 100890
* Move 'Optional' class from Clang to LLVM/ADT.Ted Kremenek2010-04-091-0/+66
| | | | llvm-svn: 100889
* Fix typo.Benjamin Kramer2010-04-091-1/+1
| | | | llvm-svn: 100887
* ARM decoder emitter should print out useful information unconditionally when itJohnny Chen2010-04-091-17/+19
| | | | | | encounters decoding conflicts, instead of wrapping it inside the DEBUG() macro. llvm-svn: 100886
* When emitting code for an add, don't force a SCEVUnknown wrapper aroundDan Gohman2010-04-092-3/+41
| | | | | | | a hoisted intermediate result if the intermediate result isn't an Instruction. llvm-svn: 100884
* When looking for loop-invariant users, look through no-op instructions,Dan Gohman2010-04-091-3/+11
| | | | | | | so that an unfortunately placed bitcast doesn't pin a value in a register. llvm-svn: 100883
* Turn access control on by default in the driver.John McCall2010-04-091-2/+2
| | | | llvm-svn: 100882
* Argh, I modified the .inc file locally, not the .td.John McCall2010-04-091-2/+2
| | | | llvm-svn: 100881
* Turn access control on by default in -cc1.John McCall2010-04-0948-47/+63
| | | | | | | | Remove -faccess-control from -cc1; add -fno-access-control. Make the driver pass -fno-access-control by default. Update a bunch of tests to be correct under access control. llvm-svn: 100880
* Make sure this test tests something.Benjamin Kramer2010-04-091-3/+7
| | | | llvm-svn: 100879
* Suppress access control diagnostics when looking up a base or member nameJohn McCall2010-04-091-0/+3
| | | | | | | fails to find a type. There are no cases where it's valid for this to produce an error. llvm-svn: 100878
* Fix a grammaro.Bob Wilson2010-04-091-1/+1
| | | | llvm-svn: 100877
* Add a testcase for svn r100568.Bob Wilson2010-04-091-0/+23
| | | | llvm-svn: 100876
* "On SPU, variables in the .bss section that are allocated with the .lcomm ↵Chris Lattner2010-04-092-1/+2
| | | | | | | | | | directive are not aligned on 16 byte boundaries. This causes misaligned loads, as the generated assembly assumes this "default" alignment. this patch disables .lcomm in favour of '.local .comm' Patch by Kalle Raisklia! llvm-svn: 100875
* Add a comment.Dan Gohman2010-04-091-1/+2
| | | | llvm-svn: 100874
* Improve diagnostics like "initializing <type> from an expression ofDouglas Gregor2010-04-0919-45/+45
| | | | | | | type..." with "initializing <type> with an expression of type...", which reads better. Thanks to John for the improved wording. llvm-svn: 100873
* Remove all "used" static functions *after* we have performed all ofDouglas Gregor2010-04-092-8/+15
| | | | | | | | | the implicit template instantiations we need to perform. Otherwise, we end up erroneously diagnosing static functions as used if they were only used within an implicit template instantiation. Fixes a bunch of spurious failures when building Clang with Clang. llvm-svn: 100872
* Instantiate default argument expressions even if their associated parameterJohn McCall2010-04-094-3/+74
| | | | | | type isn't dependent. Fixes rdar://problem/7838962. llvm-svn: 100871
* Don't warn about unused static functions if they are marked with Chris Lattner2010-04-092-1/+8
| | | | | | attr constructor or destructor. Patch by Jean-Daniel Dupas! llvm-svn: 100870
OpenPOWER on IntegriCloud