Hartmut Kaiser
04bd66bd43
Updated VC++ build system.
...
llvm-svn: 42835
2007-10-10 19:50:09 +00:00
Ted Kremenek
9e9dae0b57
Added idea for a simple C++ checker.
...
llvm-svn: 42834
2007-10-10 18:52:22 +00:00
Ted Kremenek
6c5107ced1
Added preliminary support for iterators in ImutAVLTree.
...
Implemented ImutAVLTree::isEqual.
llvm-svn: 42833
2007-10-10 18:11:16 +00:00
Chris Lattner
d9c9c919da
Fix CodeGen/Generic/BasicInstrs.llx on sparc by marking divrem
...
illegal. Thanks to gabor for pointing this out!
llvm-svn: 42832
2007-10-10 18:10:57 +00:00
Chris Lattner
a9839f73fb
add an idea
...
llvm-svn: 42831
2007-10-10 18:08:07 +00:00
Chris Lattner
ed2a9eb820
resolve a fixme, by moving __builtin_va_list to a more logical
...
place and making it correctly parameterized on the target.
llvm-svn: 42830
2007-10-10 17:48:53 +00:00
Steve Naroff
8308f60d51
Fix a latent bug in MinimalActions (created by a recent name change).
...
llvm-svn: 42829
2007-10-10 17:45:44 +00:00
Steve Naroff
93eb5f1438
Remove Scope argument from ObjC actions that either don't need it or can now use TUScope.
...
Also improve a recently added comment.
llvm-svn: 42826
2007-10-10 17:32:04 +00:00
Ted Kremenek
0818f6e7e4
Renamed internal method "Create" of ImutAVLTree to "CreateNode".
...
llvm-svn: 42825
2007-10-10 16:27:33 +00:00
Duncan Sands
56ab90d3ad
Correct swapped arguments to getConstant.
...
llvm-svn: 42824
2007-10-10 09:54:50 +00:00
Bill Wendling
f7c7ed2740
Fix 80-column violations
...
llvm-svn: 42823
2007-10-10 05:45:59 +00:00
Dale Johannesen
666323eacd
Next PPC long double bits: ppcf128->i32 conversion.
...
Surprisingly complicated.
Adds getTargetNode for 2 outputs, no inputs (missing).
llvm-svn: 42822
2007-10-10 01:01:31 +00:00
Evan Cheng
a9830a04eb
Bad choice of variable name.
...
llvm-svn: 42821
2007-10-10 00:11:40 +00:00
Evan Cheng
ad55a6079a
Fix an extremely stupid bug that prevented first round of coalescing (physical registers only) from happening.
...
llvm-svn: 42820
2007-10-09 23:36:27 +00:00
Chris Lattner
5d45178179
Add a dummy for the id typedef. Steve, plz fill this in. :)
...
llvm-svn: 42819
2007-10-09 22:58:09 +00:00
Chris Lattner
1f1b0dbc28
Make a significant change to invert the control flow handling
...
predefined macros. Previously, these were handled by the driver,
now they are handled by the preprocessor.
Some fallout of this:
1. Instead of preprocessing two buffers (the predefines, then the
main source file) we now start preprocessing the main source
file and inject the predefines as a "psuedo #include" from the
main source file.
2. #1 allows us to nuke the Lexer::IsMainFile flag and simplify
Preprocessor::isInPrimaryFile.
3. The driver doesn't have to know about standard #defines, the
preprocessor knows, which is nice for people wanting to define
their own drivers.
4. This allows us to put normal tokens in the predefine buffer,
for example a definition for __builtin_va_list that is
target-specific, and a typedef for id in objc.
llvm-svn: 42818
2007-10-09 22:10:18 +00:00
Steve Naroff
c62adb6d1a
Make sure methods with no return type default to "id".
...
This fixes a crasher in Sema::MatchTwoMethodDeclarations(), identified by selector-overload.m (just added).
Added Action::ActOnTranslationUnitScope() and renamed Action::PopScope to ActOnPopScope.
Added a Translation Unit Scope instance variable to Sema (will be very useful to ObjC-related actions, since ObjC declarations are always file-scoped).
llvm-svn: 42817
2007-10-09 22:01:59 +00:00
Ted Kremenek
230c6cc516
Modified XCode project to contain...
...
ADT/DenseSet.h
ADT/ImmutableMap.h
ADT/ImmutableSet.h
llvm-svn: 42816
2007-10-09 21:49:49 +00:00
Chris Lattner
f5ea386698
Add new MemoryBuffer::getMemBufferCopy method.
...
llvm-svn: 42815
2007-10-09 21:46:38 +00:00
Devang Patel
1999d22b7f
Fix indentation.
...
llvm-svn: 42814
2007-10-09 21:41:00 +00:00
Ted Kremenek
12bfa1ccbc
Added implementation of immutable (functional) maps and sets, as
...
implemented on top of a functional AVL tree. The AVL balancing code
is inspired by the OCaml implementation of Map, which also uses a functional
AVL tree.
Documentation is currently limited and cleanups are planned, but this code
compiles and has been tested.
llvm-svn: 42813
2007-10-09 21:38:09 +00:00
Devang Patel
2af23f976b
Do not walk invalid iterator.
...
llvm-svn: 42812
2007-10-09 21:31:36 +00:00
Devang Patel
152f18f671
Recognize while(1) and avoid extra blocks.
...
llvm-svn: 42811
2007-10-09 20:51:27 +00:00
Devang Patel
f8a76755df
new test
...
llvm-svn: 42810
2007-10-09 20:37:41 +00:00
Chris Lattner
87547e6c15
avoid a noop virtual method call on the hot scope poping path.
...
llvm-svn: 42809
2007-10-09 20:37:18 +00:00
Devang Patel
c1380400d5
Recognize "do {} while (0)" idiom and avoid extra basic blocks.
...
llvm-svn: 42808
2007-10-09 20:33:39 +00:00
Devang Patel
7ad0c2f1f9
Use LLVMFoldingBuilder
...
llvm-svn: 42807
2007-10-09 19:49:58 +00:00
Devang Patel
530f975cf0
Add LLVMFoldingBuilder
...
llvm-svn: 42806
2007-10-09 19:49:19 +00:00
Dan Gohman
850ff11022
Remove an unnecessary friend declaration.
...
llvm-svn: 42805
2007-10-09 18:39:48 +00:00
Fariborz Jahanian
eb2b34a9a5
Remove comment about protocols and namespace no longer relevant.
...
llvm-svn: 42804
2007-10-09 18:28:41 +00:00
Fariborz Jahanian
c8e7a93b02
Minor code clean up to make it more readable.
...
llvm-svn: 42803
2007-10-09 18:22:59 +00:00
Chris Lattner
516ca70f5d
Update DeclKind enums to reflect ObjcProtocolDecl's inheritance change.
...
llvm-svn: 42802
2007-10-09 18:18:24 +00:00
Fariborz Jahanian
06f84f5f84
Remove addition of protocol names to declaration scopes, use a separate
...
DenseMap to keep track of such declarations and derive ObjcProtocolDecl
directyly from NamedScope.
llvm-svn: 42801
2007-10-09 18:03:53 +00:00
Chris Lattner
3c69f12cbc
convert driver over to use Token::is/isNot APIs. fwew, all done.
...
llvm-svn: 42800
2007-10-09 18:03:42 +00:00
Chris Lattner
98c1f7cfde
Switch lexer/pp over to new Token::is/isNot api
...
llvm-svn: 42799
2007-10-09 18:02:16 +00:00
Chris Lattner
0ef1352a94
swtich to Token::is/isNot
...
llvm-svn: 42798
2007-10-09 17:51:17 +00:00
Chris Lattner
feb00b6e12
switch more code to use Token::is/isNot where possible.
...
llvm-svn: 42797
2007-10-09 17:41:39 +00:00
Chris Lattner
76c7228ef9
switch some more of the parser over to using Token::is and isNot
...
llvm-svn: 42796
2007-10-09 17:33:22 +00:00
Chris Lattner
0ab032aa8f
Add two new Token helper functions, "is" and "isNot". This allows us to write
...
stuff like this:
// If we don't have a comma, it is either the end of the list (a ';') or
// an error, bail out.
if (Tok.isNot(tok::comma))
break;
instead of:
// If we don't have a comma, it is either the end of the list (a ';') or
// an error, bail out.
if (Tok.getKind() != tok::comma)
break;
There is obviously no functionality change, but the code reads a bit better and is
more terse.
llvm-svn: 42795
2007-10-09 17:23:58 +00:00
Fariborz Jahanian
f483847233
Added better comment about protocol list for class ObjcQualifiedInterfaceType.
...
llvm-svn: 42794
2007-10-09 17:14:13 +00:00
Chris Lattner
a55a2cc25c
rename some "Parse" actions to "ActOn". Move code around in
...
ParseFunctionDefinition so that ActOnFunctionDefBody is always
called if ActOnStartOfFunctionDef is called. This fixes a crash
reported by Nuno Lopes.
llvm-svn: 42793
2007-10-09 17:14:05 +00:00
Devang Patel
eac5948348
Use const& for RHS.
...
Use copy for LHS, because it is incremented using ++ operator.
llvm-svn: 42792
2007-10-09 17:10:59 +00:00
Devang Patel
49a44f3b52
Fix comment. Describe what it is, instead of how it is used.
...
llvm-svn: 42791
2007-10-09 17:08:50 +00:00
Fariborz Jahanian
cb995d8981
Prevent memory leak by not creating a category object when there is a
...
fatal error of category's undefined interface.
llvm-svn: 42790
2007-10-09 17:05:22 +00:00
Chris Lattner
fc16c0a026
update prototype, fixing build error
...
llvm-svn: 42789
2007-10-09 16:27:44 +00:00
Dan Gohman
66966403ce
Pass argc by value, not by reference, since it isn't modified.
...
llvm-svn: 42788
2007-10-09 16:04:57 +00:00
Dan Gohman
e8c8ef5234
LowerIntegerDivOrRem no longer exists.
...
llvm-svn: 42787
2007-10-09 15:45:13 +00:00
Dan Gohman
51554bf30e
Fix grammar in a comment.
...
llvm-svn: 42786
2007-10-09 15:44:37 +00:00
Dan Gohman
6d28778bfd
This is done.
...
llvm-svn: 42785
2007-10-09 15:42:21 +00:00
Dan Gohman
678387a299
These two tests now require only two multiply instructions,
...
instead of four.
llvm-svn: 42784
2007-10-09 15:39:37 +00:00