summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Split the exception object out into its own stack.Anders Carlsson2009-02-072-10/+12
| | | | llvm-svn: 64032
* Simplify the Objective-C exception handling.Anders Carlsson2009-02-072-16/+24
| | | | llvm-svn: 64031
* Format for 80-cols.Mike Stump2009-02-071-2/+2
| | | | llvm-svn: 64030
* Move CheckPointerToMemberOperands to SemaExprCXX.cppSebastian Redl2009-02-074-69/+69
| | | | llvm-svn: 64029
* Ensure that we don't miscodegen if vlas creap into the top of the for.Mike Stump2009-02-071-0/+6
| | | | | | | This will allow us to generate break and continue even if vlas are involved without worry that we'll silently generate bad code. llvm-svn: 64028
* Fix pretty-printing of if conditions. Patch by Ben Lickly.Sebastian Redl2009-02-071-1/+2
| | | | llvm-svn: 64027
* Use getDebugLoc forwarder instead of getNode()->getDebugLoc.Dale Johannesen2009-02-0712-79/+79
| | | | | | No functional change. llvm-svn: 64026
* Make one expected-diag directive match exactly one actual diagnostic.Sebastian Redl2009-02-0714-62/+82
| | | | | | This uncovers some bugs, so several test cases now fail. llvm-svn: 64025
* Revert 64023. make prefers GNUmakefile over makefile.Evan Cheng2009-02-072-0/+0
| | | | llvm-svn: 64024
* Move Apple style build makefiles to the top level. Just like llvmgcc42.Evan Cheng2009-02-072-0/+0
| | | | llvm-svn: 64023
* fix bugpoint url, patch by Pieter de Bie!Chris Lattner2009-02-071-1/+1
| | | | llvm-svn: 64022
* Arrange to have the correct StackDepth for while statements.Mike Stump2009-02-072-9/+12
| | | | llvm-svn: 64021
* Fit into 80-col.Mike Stump2009-02-071-3/+3
| | | | llvm-svn: 64020
* Add a test case for some Objective-C behavior that will not be supported in ↵Douglas Gregor2009-02-071-0/+11
| | | | | | Objective-C++ llvm-svn: 64019
* Constify TargetInstrInfo::EmitInstrWithCustomInserter, allowingDan Gohman2009-02-0719-30/+29
| | | | | | ScheduleDAG's TLI member to use const. llvm-svn: 64018
* Change several SmallPtrSetImpl members from public to protected,Dan Gohman2009-02-071-8/+11
| | | | | | to make the encapsulation more clear. llvm-svn: 64017
* Simplify some code by using blocks_begin(), blocks_end(), andDan Gohman2009-02-071-9/+5
| | | | | | | the iterator typedefs instead of handling the std::vector directly. llvm-svn: 64016
* Make const-initialized const integral variables I-C-Es in C++.Sebastian Redl2009-02-073-2/+19
| | | | llvm-svn: 64015
* Fixup goto codegen in and around VLAs.Mike Stump2009-02-075-28/+100
| | | | llvm-svn: 64014
* Fill in C++ status table for section 7 (declarations).Sebastian Redl2009-02-071-18/+137
| | | | llvm-svn: 64013
* remove two eroneous suffixes, these promote to int. Thanks to NeilChris Lattner2009-02-071-2/+2
| | | | | | for pointing this out. llvm-svn: 64011
* add note, weirdness.Chris Lattner2009-02-071-1/+1
| | | | llvm-svn: 64010
* fix some missing parens, thanks for Eli's review!Chris Lattner2009-02-071-6/+6
| | | | | | Obviously I make a miserable header developer :) llvm-svn: 64009
* fix a typo that Sebastian noticed!Chris Lattner2009-02-071-1/+1
| | | | llvm-svn: 64008
* make sure that UINTMAX_MAX has an unsigned type. This assumes that Chris Lattner2009-02-071-1/+1
| | | | | | | uintmax_t is unsigned long long, which is not optimal, but is assumed elsewhere already. llvm-svn: 64007
* make various MAX/MIN constants be preprocessor constants, not C constants.Chris Lattner2009-02-071-12/+12
| | | | | | Thanks to Eli for pointing this out. llvm-svn: 64006
* Add an API for strings with possible NULLs in the middle. Refactor the otherNick Lewycky2009-02-072-37/+9
| | | | | | two AddString methods to use it. llvm-svn: 64005
* Ensure that we assert if given an unhandled value.Mike Stump2009-02-071-0/+1
| | | | llvm-svn: 64004
* Insert space to avoid warning and make code more readable.Mike Stump2009-02-071-2/+2
| | | | llvm-svn: 64003
* Free the buffer in the case where we don't create a module out of it, asNick Lewycky2009-02-071-6/+9
| | | | | | | | pointed out by Torok Edwin. Remove trailing whitespaces. llvm-svn: 64002
* Set load/store alignment when doing ABI coercions.Daniel Dunbar2009-02-071-4/+14
| | | | | | | | | | | | - Currently, this is producing poor code, but we prefer correctness to performance for now. Eventually we should be able to generally avoid having to set the alignment when we control the alignment of the alloca. - This knocks out 33/1000 failures on my single argument ABI tests, down to 22/1000 and 18 of these appear to be gcc bugs. Woot. llvm-svn: 64001
* Make SDNode constructors take a DebugLoc always.Dale Johannesen2009-02-073-89/+40
| | | | | | | | | Adjust derived classes to pass UnknownLoc where a DebugLoc does not make sense. Pick one of DebugLoc and non-DebugLoc variants to survive for all such classes. llvm-svn: 64000
* Enable machine sinking pass in non-fast mode.Evan Cheng2009-02-073-10/+4
| | | | llvm-svn: 63999
* Use 'Destroy(Context)' instead of 'Context.Deallocate()' (does recursive ↵Ted Kremenek2009-02-071-4/+1
| | | | | | freeing of memory). llvm-svn: 63998
* Overhaul of Stmt allocation:Ted Kremenek2009-02-0719-291/+401
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Made allocation of Stmt objects using vanilla new/delete a *compiler error* by making this new/delete "protected" within class Stmt. - Now the only way to allocate Stmt objects is by using the new operator that takes ASTContext& as an argument. This ensures that all Stmt nodes are allocated from the same (pool) allocator. - Naturally, these two changes required that *all* creation sites for AST nodes use new (ASTContext&). This is a large patch, but the majority of the changes are just this mechanical adjustment. - The above changes also mean that AST nodes can no longer be deallocated using 'delete'. Instead, one most do StmtObject->Destroy(ASTContext&) or do ASTContextObject.Deallocate(StmtObject) (the latter not running the 'Destroy' method). Along the way I also... - Made CompoundStmt allocate its array of Stmt* using the allocator in ASTContext (previously it used std::vector). There are a whole bunch of other Stmt classes that need to be similarly changed to ensure that all memory allocated for ASTs comes from the allocator in ASTContext. - Added a new smart pointer ExprOwningPtr to Sema.h. This replaces the uses of llvm::OwningPtr within Sema, as llvm::OwningPtr used 'delete' to free memory instead of a Stmt's 'Destroy' method. Big thanks to Doug Gregor for helping with the acrobatics of making 'new/delete' private and the new smart pointer ExprOwningPtr! llvm-svn: 63997
* Deleted one line too many. oops.Dale Johannesen2009-02-071-0/+1
| | | | llvm-svn: 63996
* Remove now-unused constructors.Dale Johannesen2009-02-072-106/+0
| | | | llvm-svn: 63995
* Don't sink the instruction if TargetRegisterInfo::isSafeToMoveRegClassDefs ↵Evan Cheng2009-02-071-0/+4
| | | | | | doesn't think it's safe. This works around PR1911. llvm-svn: 63994
* Needs this file too.Dale Johannesen2009-02-071-1/+1
| | | | llvm-svn: 63993
* Get rid of the last non-DebugLoc versions of getNode!Dale Johannesen2009-02-0716-85/+103
| | | | | | | | | | | | Many targets build placeholder nodes for special operands, e.g. GlobalBaseReg on X86 and PPC for the PIC base. There's no sensible way to associate debug info with these. I've left them built with getNode calls with explicit DebugLoc::getUnknownLoc operands. I'm not too happy about this but don't see a good improvement; I considered adding a getPseudoOperand or something, but it seems to me that'll just make it harder to read. llvm-svn: 63992
* GRExprEngine: When processing compound assignments, do a switch table lookup ↵Ted Kremenek2009-02-071-6/+13
| | | | | | to get the non-compound opcode from the compound opcode instead of relying on the order of BinaryOperator::opcode values. This unbreaks the misc-ps.c test. llvm-svn: 63991
* start of tgmath, yuck.Chris Lattner2009-02-071-0/+116
| | | | llvm-svn: 63990
* Refactor some repeated logic into a separate function.Dan Gohman2009-02-071-2/+7
| | | | llvm-svn: 63989
* Make a comment a doxygen comment.Dan Gohman2009-02-071-4/+4
| | | | llvm-svn: 63988
* Add negative test cases and fix diagnostics for member pointer dereferencing.Sebastian Redl2009-02-073-4/+27
| | | | llvm-svn: 63987
* When making dummy file entries, the directory name should also beDaniel Dunbar2009-02-071-1/+1
| | | | | | non-empty. llvm-svn: 63986
* Use our new snazzy stdint.h to make a testcase 64-bit portable.Sebastian Redl2009-02-071-1/+3
| | | | llvm-svn: 63985
* Apparently it is important to define intptr_t and uintptr_t to Chris Lattner2009-02-071-1/+8
| | | | | | | | long instead of int. This is because system heaers like to redefine typedefs and that is an error if they don't exactly match. Use long for intptr_t on all systems where long is the right size. llvm-svn: 63984
* Implement dereferencing of pointers-to-member.Sebastian Redl2009-02-0711-36/+164
| | | | llvm-svn: 63983
* Fix some errors in the new stdint.h.Sebastian Redl2009-02-061-5/+5
| | | | llvm-svn: 63982
OpenPOWER on IntegriCloud