- Feb 06, 2008
-
-
Chris Lattner authored
llvm-svn: 46786
-
Chris Lattner authored
llvm-svn: 46785
-
Anders Carlsson authored
llvm-svn: 46777
-
- Feb 05, 2008
-
-
Chris Lattner authored
llvm-svn: 46774
-
- Feb 04, 2008
-
-
Christopher Lamb authored
qualifiers use the __attribute__((address_space(id))) syntax. llvm-svn: 46691
-
- Feb 01, 2008
-
-
Steve Naroff authored
Rename diagnostic to reflect it's role... llvm-svn: 46650
-
Anders Carlsson authored
llvm-svn: 46638
-
Anders Carlsson authored
It is allowed to get the address of an array subscript, even if the array has the register qualifier, if the array is really a pointer. llvm-svn: 46634
-
Chris Lattner authored
Fix Sema::ActOnInstanceMessage to correctly do things in terms of canonical types, fixing bogus errors like: NSDistantObject.m:10383:120: error: bad receiver type 'typeof((id<NSMutableCopying>)self)' id mess = ({ id __inv__ = ((void *)0); id __mb__ = _NSMessageBuilder((id <NSMutableCopying>)self, &__inv__); (void)[(__typeof__((id <NSMutableCopying>)self))__mb__ mutableCopyWithZone:((void *)0)]; if (!objc_collecting_enabled()) object_dispose(__mb__); __inv__; }); llvm-svn: 46633
-
Chris Lattner authored
here I fix just one. The loop that rips through pointers should use getAsPointerType() not static_cast<PointerType*> to get the pointee. This fixes a crash on a large testcase. llvm-svn: 46632
-
- Jan 31, 2008
-
-
Nate Begeman authored
llvm-svn: 46601
-
Steve Naroff authored
Hack Sema::MergeTypeDefDecl() to silently ignore duplicate typedef's in system headers files. A bizarre, non-standard hook that many compilers appear to implement (sigh:-). llvm-svn: 46583
-
- Jan 30, 2008
-
-
Nate Begeman authored
llvm-svn: 46572
-
Devang Patel authored
llvm-svn: 46561
-
Eli Friedman authored
one argument. Lets stuff using pthread.h compile. llvm-svn: 46559
-
Eli Friedman authored
that causes this isn't really correct, but if we're going to accept this, it should come up with a consistent AST. llvm-svn: 46557
-
Steve Naroff authored
Many refinements to Sema::MergeVarDecl(). This routine still needs some re-work to fully handle tentative decls. This includes a fix to bz1908. llvm-svn: 46540
-
- Jan 29, 2008
-
-
Fariborz Jahanian authored
Rewriting of @synchronized. This has one FIXME in it. But this should allow @sychronized to be rewritten. llvm-svn: 46533
-
Fariborz Jahanian authored
llvm-svn: 46524
-
Steve Naroff authored
Tighten up ASTContext::typesAreCompatible()...it needs to make sure the qualifiers match. The comment and C99 citation for this routine were correct...the code needed to conform to the comment/spec. This fixes the test added below. Tightening up this routine forced tweaks to Sema::CheckSubtractionOperands() and Sema::CheckCompareOperands(). For example, they both need to operate on the unqualified pointee... llvm-svn: 46522
-
Eli Friedman authored
doesn't get confused by typedefs. llvm-svn: 46502
-
Steve Naroff authored
Tweak Sema::DefaultArgumentPromotion() to call UsualUnaryConversions(). This makes sure function calls that don't have a prototype get the default function/array conversion. Patch by Eli Friedman! llvm-svn: 46489
-
- Jan 28, 2008
-
-
Steve Naroff authored
Implement "private extern" on function decls! llvm-svn: 46464
-
Steve Naroff authored
Fix a bug with struct initializers (in Sema::CheckInitializerListTypes()). Test case included from bz1948 (thanks Neil!). Also fixed an 80 column violation... llvm-svn: 46430
-
- Jan 25, 2008
-
-
Steve Naroff authored
Add more support for Apple's "private extern" extension... llvm-svn: 46371
-
Fariborz Jahanian authored
llvm-svn: 46358
-
Steve Naroff authored
Replace Sema::CheckVariableInitList, CheckConstantInitList, and CheckForCharArrayInitializer with CheckInitializerListTypes. The new routine now supports struct/union initializers. This is a modified version of a patch by Eli Friedman. This version passes all of the clang tests and supports vectors:-) Note that Eli and I are still unsatisfied the implementation of CheckInitializerListTypes(). We'd like to find a more elegant implementation. Nevertheless, this is a complex part of the standard (and may be hard to simplify). Since the complexity is localized to this routine, we can iterate without too much disruption:-) llvm-svn: 46339
-
Chris Lattner authored
llvm-svn: 46336
-
- Jan 24, 2008
-
-
Steve Naroff authored
Exclude vectors from Type::isScalar() predicate. llvm-svn: 46328
-
- Jan 22, 2008
-
-
Steve Naroff authored
- Add Sema::CheckStringLiteralInit, Sema::IsStringLiteralInit. - Use previous hooks to simplify Sema::CheckInitializerTypes()... llvm-svn: 46235
-
Steve Naroff authored
llvm-svn: 46234
-
- Jan 21, 2008
-
-
Fariborz Jahanian authored
a method. llvm-svn: 46232
-
- Jan 18, 2008
-
-
Steve Naroff authored
Sema::FinalizeDeclaratorGroup(): Tighten up the tentative definition rule when dealing with arrays. Bug submitted by Eli. llvm-svn: 46179
-
Steve Naroff authored
Sema::FinalizeDeclaratorGroup()...make sure we emit an diagnostic for tentative definitions with incomplete types. Touch up all test cases that are effected. llvm-svn: 46152
-
- Jan 17, 2008
-
-
Fariborz Jahanian authored
llvm-svn: 46141
-
Ted Kremenek authored
llvm-svn: 46134
-
Nate Begeman authored
__builtin_overload takes 2 or more arguments: 0) a non-zero constant-expr for the number of arguments the overloaded functions will take 1) the arguments to pass to the matching overloaded function 2) a list of functions to match. The return type of __builtin_overload is inferred from the function whose args match the types of the arguments passed to the builtin. For example: float a; float sinf(float); int sini(int); float b = __builtin_overload(1, a, sini, sinf); Says that we are overloading functions that take one argument, and trying to pass an argument of the same type as 'a'. sini() does not match since it takes and argument of type int. sinf does match, so at codegen time this will turn into float b = sinf(a); llvm-svn: 46132
-
Fariborz Jahanian authored
size in accordance with how rewriter synthesizes method name. llvm-svn: 46131
-
Ted Kremenek authored
Refactored the use of this method into both the Sema module and Analysis module, which were using their own static functions that did the same thing. llvm-svn: 46129
-
Fariborz Jahanian authored
when creating its type. llvm-svn: 46109
-