]>
granicus.if.org Git - clang/log
Ted Kremenek [Tue, 25 Mar 2008 00:16:48 +0000 (00:16 +0000)]
Added "arg_iterators" to ObjCMessageExpr (for iterating over the arguments of a message expression)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48756
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 24 Mar 2008 23:38:32 +0000 (23:38 +0000)]
Minor CSS tweaking: use webkit style CSS properties for shadows/rounded edges
for message bubbles.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48754
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Mon, 24 Mar 2008 22:03:25 +0000 (22:03 +0000)]
Add a couple files to VC++ project and cleanup an "#if 0".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48748
91177308 -0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Mon, 24 Mar 2008 21:39:05 +0000 (21:39 +0000)]
debian amd64 testing
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48745
91177308 -0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Mon, 24 Mar 2008 21:25:48 +0000 (21:25 +0000)]
debian ia32 testing
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48742
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 24 Mar 2008 21:14:55 +0000 (21:14 +0000)]
Avoid overflowing buffer, patch by Algeris Kirtzidis!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48741
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sam Bishop [Sun, 23 Mar 2008 03:42:18 +0000 (03:42 +0000)]
The newest version of valgrind, 3.3.0, no longer appends PIDs to log filenames
by default. Adding a %p works with this new version and is backwards
compatible, though it looks a little funny.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48698
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sat, 22 Mar 2008 20:11:00 +0000 (20:11 +0000)]
Changed merge operation for uninitialized values analysis to "intersect" (previous union).
The effect is that if a variable is uninitialized along a branch (but initialized along another), at merge points it is considered uninitialized. Previously we had the opposite behavior. The new behavior is more conservative, and more in line with gcc's behavior.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48689
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 22 Mar 2008 00:08:40 +0000 (00:08 +0000)]
Teach the rewriter how to respect the -o option.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48669
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 22 Mar 2008 00:07:50 +0000 (00:07 +0000)]
fix this test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48668
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 21 Mar 2008 21:30:14 +0000 (21:30 +0000)]
Rename "Nodify" to "MakeNode"
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48659
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sam Bishop [Fri, 21 Mar 2008 08:05:55 +0000 (08:05 +0000)]
Only invoke the preprocessor; it's the only thing being tested. Also, check
the output to make sure that the macros and comments are being treated as such.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48638
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sam Bishop [Fri, 21 Mar 2008 07:13:02 +0000 (07:13 +0000)]
Plug a memory leak in the "this macro expands into a single trivially-
expanded token" case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48637
91177308 -0d34-0410-b5e6-
96231b3b80d8
Sam Bishop [Fri, 21 Mar 2008 07:02:04 +0000 (07:02 +0000)]
Use the -E option when invoking clang. Only the preprocessor is
required to perform this test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48636
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Thu, 20 Mar 2008 22:50:54 +0000 (22:50 +0000)]
Add ability to run clang tests under valgrind. Patch by Sam Bishop.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48621
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 20 Mar 2008 21:46:49 +0000 (21:46 +0000)]
LiveVariables analysis now uses intersect for the merge of block-level expression liveness information.
The rationale is that a block-level expression cannot be live in a parent block unless it is live in all of the successor blocks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48618
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Thu, 20 Mar 2008 14:43:48 +0000 (14:43 +0000)]
Use make's -C option to enter directories.
Also, do not try to remove build/ dir when
cleaning, this does not exist any more.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48599
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Thu, 20 Mar 2008 14:28:22 +0000 (14:28 +0000)]
reduce chattyness of makefiles
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48597
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Thu, 20 Mar 2008 08:09:10 +0000 (08:09 +0000)]
scan testdirs only once, patch by Mike Stump, thanks!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48589
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 23:55:53 +0000 (23:55 +0000)]
Added HTML highlighting for ranges.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48572
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 19 Mar 2008 23:46:26 +0000 (23:46 +0000)]
Fix typo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48571
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Wed, 19 Mar 2008 23:07:49 +0000 (23:07 +0000)]
Fix http://llvm.org/bugs/show_bug.cgi?id=2161.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48568
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 22:44:21 +0000 (22:44 +0000)]
Change colors of HTML message bubble.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48563
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 22:06:25 +0000 (22:06 +0000)]
More CSS enhancements to HTML code printing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48557
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 21:59:05 +0000 (21:59 +0000)]
Misc. cleanups to HTML printing: make code rendered using tables; add
better div positioning for messages.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48555
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 16:32:34 +0000 (16:32 +0000)]
Minor speed tweak per Chris's suggestion: use &S[0] instead of S.c_str().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48544
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 08:00:50 +0000 (08:00 +0000)]
Integrated some of Chris's comments; check for an empty string in InsertStrXXX()
before descending into the bowels of the Rewriter.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48541
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 07:53:42 +0000 (07:53 +0000)]
Initial experimentation with adding boxed "annotations" to HTMLized source.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48540
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 07:31:52 +0000 (07:31 +0000)]
Convert tabs to spaces.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48539
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 06:14:37 +0000 (06:14 +0000)]
Moved generation of html header/footer with builtin CSS to the rewriter library.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48537
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 19 Mar 2008 05:24:56 +0000 (05:24 +0000)]
simplify code by using the variadic StructType::get method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48535
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 19 Mar 2008 05:19:41 +0000 (05:19 +0000)]
simplify the clang codegen by using the new Builder.CreateStructGEP method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48534
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 05:07:26 +0000 (05:07 +0000)]
More cleanups to the HTML rewriter (with line formatting), with better
pretty-printing of line numbers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48533
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 05:06:49 +0000 (05:06 +0000)]
Added InsertStrXXX/InsertCStrXXX methods to the Rewriter to provide a simpler
interface to the rewriter when clients have NULL terminated strings or std::string.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48532
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 01:44:27 +0000 (01:44 +0000)]
Change "style" to "class" in HTML output.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48525
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Wed, 19 Mar 2008 01:30:02 +0000 (01:30 +0000)]
More cleanups to HTML rewriter API: remove the InsertTag method; was too complicated
and clients can achieve a cleaner design just by inserting tags directly. Reserve
the "html" namespace for meta-level operations (e.g., escaping text, etc.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48524
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 18 Mar 2008 23:55:46 +0000 (23:55 +0000)]
More HTML rewriter cleanups. Preliminary CSS support in code pretty-printing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48518
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 18 Mar 2008 23:08:51 +0000 (23:08 +0000)]
Some cleanups to the HTMLRewrite API. Added support for printing out line
numbers (more work to be done on aesthetics).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48512
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 18 Mar 2008 22:21:07 +0000 (22:21 +0000)]
Added HTML pretty-printer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48507
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 18 Mar 2008 21:26:34 +0000 (21:26 +0000)]
Modified "InsertTag" (HTML rewriter) to have an optional "OutermostTag" flag to
indicate whether or not the new tag should be the outermost tag at the specified
location (in the case that other tags have been inserted at the same spot).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48506
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 18 Mar 2008 21:19:49 +0000 (21:19 +0000)]
Added the beginning of a set of rewriter functions for pretty-printing source
code as HTML. Added a new driver option "--emit-html" to dump the source
of the main input file as HTML.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48505
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 18 Mar 2008 21:17:59 +0000 (21:17 +0000)]
Added variant of "InsertText" in the Rewriter to support inserting text both
*before* and after a specific location.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48504
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 18 Mar 2008 21:00:57 +0000 (21:00 +0000)]
Bug fix in RewriteBuffer::getMappedOffset: potentially multiple deltas
need to be skipped over when AfterInserts == true, as multiple deltas
may share the same FileLoc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48503
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 18 Mar 2008 20:13:06 +0000 (20:13 +0000)]
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48501
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 18 Mar 2008 20:05:40 +0000 (20:05 +0000)]
Update project files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48500
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 18 Mar 2008 20:05:01 +0000 (20:05 +0000)]
Test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48499
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Tue, 18 Mar 2008 19:43:13 +0000 (19:43 +0000)]
Added method "getSourceMgr" to class Rewriter.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48496
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Tue, 18 Mar 2008 07:03:00 +0000 (07:03 +0000)]
add 'clean' targets, make sure that 'make test' works after 'make clean'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48488
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Tue, 18 Mar 2008 06:42:43 +0000 (06:42 +0000)]
let the %t magic happen, thanks Chris!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48487
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Tue, 18 Mar 2008 06:14:16 +0000 (06:14 +0000)]
Switch over to the parallelized makefile, but keep old serial
makefile around (just change Makefile.parallel to Makefile to
get back old functionality).
To run parallel tests, specify
make -jN test # where N = num of CPUs * 2
to get detailed output, run
make -jN test VERBOSE=1
to only get error descriptions *after the tests have run*, type
make report
this gives you the extra information which was omitted in non-VERBOSE
mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48486
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 18 Mar 2008 05:59:11 +0000 (05:59 +0000)]
move #include to the file that needs it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48485
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Tue, 18 Mar 2008 03:38:14 +0000 (03:38 +0000)]
Fix a typo
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48482
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 18 Mar 2008 02:02:04 +0000 (02:02 +0000)]
Fix <rdar://problem/
5716940 > rewriter generates invalid C code when no selector found.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48479
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Tue, 18 Mar 2008 01:47:18 +0000 (01:47 +0000)]
Wrap up __NSConstantStringImpl (the replacement for __builtin___CFStringMakeConstantString).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48477
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 17 Mar 2008 22:18:22 +0000 (22:18 +0000)]
Fix assertion.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48470
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 17 Mar 2008 22:17:56 +0000 (22:17 +0000)]
Fix integer overflow bug when processing switch statements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48469
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 17 Mar 2008 21:31:48 +0000 (21:31 +0000)]
Properly hook up inline asm transfer function logic to the main GRExprEngine logic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48468
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 17 Mar 2008 21:21:04 +0000 (21:21 +0000)]
Updated VS project files to reference all libraries in the "lib" subdirectory.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48467
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 17 Mar 2008 21:11:24 +0000 (21:11 +0000)]
Added initial transfer function support for inline asm.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48466
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 17 Mar 2008 21:05:33 +0000 (21:05 +0000)]
Added "inputs" and "outputs" iterator (expression) for AsmStmt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48465
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Mon, 17 Mar 2008 18:36:14 +0000 (18:36 +0000)]
finishing touches: teminate the dots with a newline
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48462
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Mon, 17 Mar 2008 17:22:18 +0000 (17:22 +0000)]
Check in a couple fixes for vector extensions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48461
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Mon, 17 Mar 2008 17:19:44 +0000 (17:19 +0000)]
Bug fix in CFG construction: VisitCompoundStmt should return the last created block.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48460
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Mon, 17 Mar 2008 16:29:58 +0000 (16:29 +0000)]
Implemented verbose mode.
make test VERBOSE=1
should now produce the same output like
the Makefile normally does.
Without VERBOSE only the names of failed tests
are printed.
I am pretty comfortable with this version, and
I think it is time to switch over to Makefile.parallel
to be the default.
What do you think? Did I forget some piece of feedback?
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48458
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Mon, 17 Mar 2008 15:58:58 +0000 (15:58 +0000)]
Simplify further by creating *.testresults files
inside of the Output/ directory.
The testclean target could be removed now.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48457
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Mon, 17 Mar 2008 15:37:09 +0000 (15:37 +0000)]
Get rid of the creation of secondary makefile "Makefile.tests".
This implements second part of
<http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-
20080310 /004727.html>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48456
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Mon, 17 Mar 2008 15:07:59 +0000 (15:07 +0000)]
More review feedback implemented:
Get rid of "awk" dependence by using same "make"
functionality:
<http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-
20080310 /004727.html>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48455
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Mon, 17 Mar 2008 13:45:47 +0000 (13:45 +0000)]
Actually expand the %t1 patterns (in RUN: lines) to a unique
filename.
This fixes (e.g.) CodeGen/struct-x86-darwin.c which
raced at writing to "%t1" with other tests when parallel
testing was specified with a high "-j XX" value.
Also gets rid of the file tools/clang/test/%t1
when doing an "svn st" after testing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48454
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Mon, 17 Mar 2008 12:35:00 +0000 (12:35 +0000)]
Second round of review feedback.
* print out message when tests start
* testrunner sets status now
* on failed test run print out test name
I tested these changes with the non-parallel makefile
and it did not break.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48453
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 17 Mar 2008 01:26:42 +0000 (01:26 +0000)]
eliminate the last signed element count.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48436
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 17 Mar 2008 01:24:41 +0000 (01:24 +0000)]
clean up iteration over propertydecls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48435
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 17 Mar 2008 01:19:02 +0000 (01:19 +0000)]
clean up property memory allocation to move it into the ast classes
like the rest of the classes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48434
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 21:23:50 +0000 (21:23 +0000)]
make property addition work list all other "add" methods. Do
the allocation in the class, not in sema.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48433
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 21:17:37 +0000 (21:17 +0000)]
add the last two Create methods for decls, woo!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48432
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 21:08:55 +0000 (21:08 +0000)]
Convert more counts to be zero based instead of -1 based, make them unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48429
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 20:53:07 +0000 (20:53 +0000)]
add two more Create methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48428
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 20:47:45 +0000 (20:47 +0000)]
simplify the way ObjCCategoryDecl's get their referenced protocols list
specified. Previously, the ctor would allocate memory for the list and then
it would get filled in later. Move the allocation+filling in to be more
consistent with other stuff, e.g. the addMethods method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48427
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 20:34:23 +0000 (20:34 +0000)]
Add create methods for ObjCCategoryDecl, ObjCForwardProtocolDecl, ObjCClassDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48426
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 20:27:39 +0000 (20:27 +0000)]
make some more 'counts' unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48425
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 20:22:07 +0000 (20:22 +0000)]
make NumClassMethods unsigned in categories
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48424
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 20:19:15 +0000 (20:19 +0000)]
minor cleanups, make getNumInstanceMethods always return unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48423
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 01:25:17 +0000 (01:25 +0000)]
fix a crasher where an invalid program that multiply defined
a protocol could smash more references in than are allocated.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48411
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 01:23:04 +0000 (01:23 +0000)]
Give ObjCProtocolDecl a Create method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48410
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 01:16:52 +0000 (01:16 +0000)]
hoist a bunch of casting.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48409
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 01:15:50 +0000 (01:15 +0000)]
Add create methods for ObjCIvarDecl and ObjCInterfaceDecl
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48408
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 01:07:14 +0000 (01:07 +0000)]
Make the parameter count of ObjCMethodDecl unsigned, you
can't have negative arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48407
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 00:58:16 +0000 (00:58 +0000)]
remove some dead arguments to ObjCMethodDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48406
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 00:49:28 +0000 (00:49 +0000)]
Give ObjCMethodDecl a Create method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48405
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 00:19:01 +0000 (00:19 +0000)]
Split objc decl implementation out into DeclObjC.cpp
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48404
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 16 Mar 2008 00:16:02 +0000 (00:16 +0000)]
switch the rest of the C decl classes to do their
allocation through ASTContext.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48403
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 15 Mar 2008 23:59:48 +0000 (23:59 +0000)]
Make a major restructuring of the clang tree: introduce a top-level
lib dir and move all the libraries into it. This follows the main
llvm tree, and allows the libraries to be built in parallel. The
top level now enforces that all the libs are built before Driver,
but we don't care what order the libs are built in. This speeds
up parallel builds, particularly incremental ones.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48402
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 15 Mar 2008 23:04:32 +0000 (23:04 +0000)]
Make a ctor protected
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48401
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sat, 15 Mar 2008 22:11:54 +0000 (22:11 +0000)]
Fixed 80 col. violations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48400
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sat, 15 Mar 2008 22:07:05 +0000 (22:07 +0000)]
Disable creation of "ContentsOf" symbols. It was fundamentally broken on many
levels; eventually we will need a plug-in model (similar to GRTransferFuncs) to
represent symbolic memory.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48399
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 15 Mar 2008 21:32:50 +0000 (21:32 +0000)]
move the ASTContext argument to be first in the argument list of
all Create methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48398
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 15 Mar 2008 21:24:04 +0000 (21:24 +0000)]
Switch over functiondecl. This makes it obvious that the ASTContext
argument to Create should be first, not last.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48397
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 15 Mar 2008 21:10:16 +0000 (21:10 +0000)]
switch the VarDecl allocation model to go through ASTContext.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48396
91177308 -0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Sat, 15 Mar 2008 08:11:35 +0000 (08:11 +0000)]
implement a bit of feedback: print dots
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48394
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sat, 15 Mar 2008 07:58:36 +0000 (07:58 +0000)]
Added initialization to ErrorDiag to silence gcc's warning of the variable
potentially being used uninitialized (which it cannot be).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48393
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sat, 15 Mar 2008 07:45:02 +0000 (07:45 +0000)]
Small bug fix in CFG construction: the active block for LabelStmts comes
from "Block", not the CFGBlock* returned from visiting its subexpression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48392
91177308 -0d34-0410-b5e6-
96231b3b80d8