Ted Kremenek
3ebc5057ac
BugReporter (extensive diagnostics): Recursively adjust the referred expression
...
when popping location contexts.
llvm-svn: 69898
2009-04-23 16:44:22 +00:00
Chris Lattner
d87f6e55ee
Fix rdar://6819438 - -Wmissing-noreturn not recognised by clang,
...
by accepting and ignoring it for now.
llvm-svn: 69897
2009-04-23 16:38:59 +00:00
Fariborz Jahanian
80672fce8f
Removed bunch of FIXMEs no longer needed.
...
llvm-svn: 69896
2009-04-23 16:27:20 +00:00
Ted Kremenek
e60809c31d
BugReporter (extensive diagnostics): Ignore parentheses when added control-flow
...
pieces for location contexts.
llvm-svn: 69895
2009-04-23 16:19:29 +00:00
Steve Naroff
0cbba990d7
More PushOnScopeChain() FIXME's.
...
llvm-svn: 69894
2009-04-23 16:00:56 +00:00
Dan Gohman
d6f9713634
Fix an error in this test.
...
llvm-svn: 69893
2009-04-23 15:22:28 +00:00
Dan Gohman
86bcd97014
Change SCEVExpander's expandCodeFor to provide more flexibility
...
with the persistent insertion point, and change IndVars to make
use of it. This fixes a bug where IndVars was holding on to a
stale insertion point and forcing the SCEVExpander to continue to
use it.
This fixes PR4038.
llvm-svn: 69892
2009-04-23 15:16:49 +00:00
Steve Naroff
3c301dc573
Sema::ActOnStartClassInterface(): Use PushOnScopeChains().
...
This enables class recognition to work with PCH. I believe this means we can remove Sema::ObjCInterfaceDecls and it's usage within Sema::LookupName(). Will investigate.
llvm-svn: 69891
2009-04-23 15:15:40 +00:00
Steve Naroff
2ddea05bca
Add PCH read/write support for Objective-C Selectors.
...
Note: This support is non-lazy. Once we get "Cocoa.h" humming, we can optimize this.
llvm-svn: 69884
2009-04-23 10:39:46 +00:00
Sanjiv Gupta
5058f240d9
Banksel immediate constant will always immediately follow the GA/ES, so scan an insn from beginnin to find out the banksel operand.
...
llvm-svn: 69883
2009-04-23 10:34:58 +00:00
Daniel Dunbar
f0a8344bac
Mark IMAGE_INFO as constant on x86_64-darwin.
...
- This shouldn't change anything, we never actually access it, but
this is consistent with llvm-gcc (and 32-bit)
llvm-svn: 69880
2009-04-23 08:03:21 +00:00
Chris Lattner
324f80b12a
fix a problem producing debug info with global blocks.
...
llvm-svn: 69875
2009-04-23 07:18:56 +00:00
Daniel Dunbar
4645707034
Add implicit definition of objc_msgSend.
...
- As with malloc and friends, this is important where the return type
on a 64-bit platform would otherwise end up discarding the upper
32-bits.
llvm-svn: 69874
2009-04-23 07:00:09 +00:00
Chris Lattner
7b0344f656
implement debug info for _Complex.
...
llvm-svn: 69873
2009-04-23 06:13:01 +00:00
Chris Lattner
28ec0cf86c
the logic for computing __func__ and friends is really broken:
...
the type assigned by sema (and is visible with sizeof(__func__) for
example) has nothing to do with what codegen ends up producing.
We should eventually add a method on PredefinedExpr to handle this.
In the meantime, just set up some framework and add some fixme's.
llvm-svn: 69872
2009-04-23 05:30:27 +00:00
Chris Lattner
f718110ae5
remove some gone files
...
llvm-svn: 69871
2009-04-23 05:29:03 +00:00
Nick Lewycky
b4d9f7a9b3
Simplify trunc(extend(x)) in SCEVs, just for completeness. Also fix some odd
...
whitespace in the same file.
llvm-svn: 69870
2009-04-23 05:15:08 +00:00
Daniel Dunbar
dec9e1ec5e
Don't build error/warning/assertion detection in the testing script.
...
- This wasn't actually all that useful and isn't worth the extra
(hard)code.
llvm-svn: 69869
2009-04-23 05:03:44 +00:00
Owen Anderson
7d82244be7
Testcase for PR3909.
...
llvm-svn: 69868
2009-04-23 04:33:42 +00:00
Owen Anderson
b94ea3ebf1
Testcase for PR2639.
...
llvm-svn: 69867
2009-04-23 04:30:52 +00:00
Owen Anderson
b211b5c478
Testcase for PR2537.
...
llvm-svn: 69866
2009-04-23 04:26:42 +00:00
Owen Anderson
437c6357e0
Fix typo.
...
llvm-svn: 69865
2009-04-23 04:24:19 +00:00
Chris Lattner
0dc102624f
some arm triples have weird characters in them, just fuzzy match
...
on armv* to be more compatible
llvm-svn: 69864
2009-04-23 04:22:04 +00:00
Owen Anderson
0e357e5fd3
Testcase for PR3085.
...
llvm-svn: 69863
2009-04-23 04:21:14 +00:00
Owen Anderson
7e96d34f2e
Add testcase from PR3086.
...
llvm-svn: 69862
2009-04-23 04:14:03 +00:00
Chris Lattner
16ce381f37
Silence warnings about common forms of -Wstrict-aliasing etc.
...
llvm-svn: 69861
2009-04-23 04:12:10 +00:00
Douglas Gregor
515b505c3e
PCH (de-)serialization of the protocols in an ObjCInterfaceDecl
...
llvm-svn: 69860
2009-04-23 03:59:07 +00:00
Douglas Gregor
0ebb9964f9
Add the PCH reader stub for ObjCCompatibleAliasDecl
...
llvm-svn: 69859
2009-04-23 03:51:49 +00:00
Douglas Gregor
49e72fb870
PCH support for ObjCPropertyImplDecl
...
llvm-svn: 69858
2009-04-23 03:43:53 +00:00
Douglas Gregor
5f66205233
The ivars in an ObjCImplementationDecl are now stored in the
...
DeclContext rather than in a separate list. This makes PCH
(de-)serialization trivial, so that ivars can be loaded lazily.
llvm-svn: 69857
2009-04-23 03:23:08 +00:00
Douglas Gregor
510fd8dff1
PCH support for ObjCCategoryImplDecl (which can't be tested now).
...
llvm-svn: 69856
2009-04-23 02:53:57 +00:00
Douglas Gregor
9a13efd5b2
PCH (de-)serialization for ObjCImplDecl. This can't be tested yet.
...
llvm-svn: 69855
2009-04-23 02:42:49 +00:00
Anders Carlsson
0781ce7cce
Add a CXXConstructExpr that represents an implicit call to a C++ constructor. I think CXXTemporaryObjectExpr is going to become a subclass of CXXConstructExpr, since CXXTemporaryObjectExpr represents a syntactic temporary, for example T()
...
llvm-svn: 69854
2009-04-23 02:32:43 +00:00
Daniel Dunbar
22b0ada8cf
Use std::sort instead of qsort.
...
- Notably, there was a memory error here, SkipIvars does not have to
be the same size as IvarsInfo.
- Fariborz, please check.
llvm-svn: 69850
2009-04-23 01:29:05 +00:00
Douglas Gregor
29bd76fd04
Eliminate the three SmallVectors in ObjCImplDecl (for instance
...
methods, class methods, and property implementations) and instead
place all of these entities into the DeclContext.
This eliminates more linear walks when looking for class or instance
methods and should make PCH (de-)serialization of ObjCDecls trivial
(and lazy).
llvm-svn: 69849
2009-04-23 01:02:12 +00:00
Dan Gohman
14efb90fcf
Add support for printing MO_ExternalSymbol operands in
...
memory operand tuples. This doesn't ever come up in normal
code however.
llvm-svn: 69848
2009-04-23 00:57:37 +00:00
Dan Gohman
4cc0cae46c
Add more ulimit limits, to catch more kinds of runaway behavior.
...
llvm-svn: 69847
2009-04-23 00:28:31 +00:00
Owen Anderson
d4f5537c5e
Use the testcase from PR2791.
...
llvm-svn: 69846
2009-04-23 00:15:26 +00:00
Evan Cheng
d8174d3d09
Make sure both operands have binary instructions have the same type.
...
llvm-svn: 69844
2009-04-22 23:39:28 +00:00
Douglas Gregor
85e110828e
PCH support for Objective-C property declarations (UNTESTED!)
...
llvm-svn: 69843
2009-04-22 23:20:34 +00:00
Evan Cheng
59ca33053b
A few more places where the check of use_empty is needed.
...
llvm-svn: 69842
2009-04-22 23:09:16 +00:00
Fariborz Jahanian
6df69867c3
ivar layout bitmap is alive!
...
llvm-svn: 69838
2009-04-22 23:00:43 +00:00
Evan Cheng
cbfe9df096
Avoid deferencing use_begin() if value does not have a use.
...
llvm-svn: 69836
2009-04-22 22:45:37 +00:00
Douglas Gregor
a57c3abf37
Add PCH statistics for the number/percent of lexical/visible declcontexts read
...
llvm-svn: 69835
2009-04-22 22:34:57 +00:00
Ted Kremenek
63e29cc99c
Add PathDiagnosticRange to PathDiagnostics. These simply wrap SourceRange and
...
indicate whether or not the range represents an absolute range or should be
extended by lexing to the end of the token.
llvm-svn: 69834
2009-04-22 22:26:10 +00:00
Douglas Gregor
acfc76cc63
Support locally-declared external declarations in PCH files
...
llvm-svn: 69833
2009-04-22 22:18:58 +00:00
David Greene
f00919a040
Allow defm to inherit from multiple multiclasses.
...
llvm-svn: 69832
2009-04-22 22:17:51 +00:00
Douglas Gregor
2e43ab535b
Clean up and de-XFAIL-ify PCH test for external definitions
...
llvm-svn: 69831
2009-04-22 22:09:39 +00:00
Chris Lattner
91cb0eea67
remove obsolete tests.
...
llvm-svn: 69830
2009-04-22 22:06:26 +00:00
Douglas Gregor
d4df8657b4
Support tentative definitions in precompiled headers. This isn't likely
...
to happen (ever), but at least we'll do the right thing when it does.
llvm-svn: 69829
2009-04-22 22:02:47 +00:00