Chris Lattner
1630c3c4f0
Add an implementation of -dM that follows GCC closely enough to permit
...
diffing the output of:
clang -dM -o - -E -x c foo.c | sort
llvm-svn: 63926
2009-02-06 06:45:26 +00:00
Chris Lattner
5c7cd6043e
add interface for walking macro table.
...
llvm-svn: 63925
2009-02-06 06:26:42 +00:00
Chris Lattner
f302000e5c
add support for -x c++-header, update comment.
...
llvm-svn: 63924
2009-02-06 06:19:20 +00:00
Devang Patel
7cb8df4ce7
Ignore DbgInfoIntrinsics.
...
llvm-svn: 63923
2009-02-06 06:19:06 +00:00
Chris Lattner
fc001b04f8
factor some code out into a helper function.
...
llvm-svn: 63922
2009-02-06 05:56:11 +00:00
Chris Lattner
4c72665bca
file gone.
...
llvm-svn: 63921
2009-02-06 05:18:06 +00:00
Chris Lattner
bba531ce99
get __WCHAR_TYPE__ from the targetinfo hook
...
llvm-svn: 63920
2009-02-06 05:06:07 +00:00
Chris Lattner
a91c30fdb0
simplify and refactor a bunch of type definition code in Preprocessor
...
predefines buffer initialization.
llvm-svn: 63919
2009-02-06 05:04:11 +00:00
Chris Lattner
61898606dc
remove some ad-hocery and use DefineTypeSize for more things.
...
Now you too can have a 47 bit long long!
llvm-svn: 63918
2009-02-06 04:55:18 +00:00
Chris Lattner
a3dc5d8423
refactor some code into a DefineTypeSize function.
...
llvm-svn: 63917
2009-02-06 04:50:25 +00:00
Chris Lattner
bbbb74372b
fix PR3489, use bits instead of bytes.
...
llvm-svn: 63916
2009-02-06 04:34:07 +00:00
Chris Lattner
fa81669354
default diag::err_pp_file_not_found to mapping to fatal,
...
implementing PR3492: #include failures should be a fatal error
llvm-svn: 63915
2009-02-06 04:16:41 +00:00
Chris Lattner
9e03119446
don't emit any diagnostics after a fatal one.
...
llvm-svn: 63914
2009-02-06 04:16:02 +00:00
Chris Lattner
b05f49e7fd
handle fatal errors, rely on warnings to point out missing cases.
...
llvm-svn: 63913
2009-02-06 03:57:44 +00:00
Dale Johannesen
2c4cf2752d
get rid of some non-DebugLoc getTargetNode variants.
...
llvm-svn: 63909
2009-02-06 02:08:06 +00:00
Nick Lewycky
74b5ef7cae
Free the buffer.
...
llvm-svn: 63907
2009-02-06 01:58:34 +00:00
Evan Cheng
8ad4e0bb19
Fix test. It produces unexpected code if sse4.1 is on.
...
llvm-svn: 63906
2009-02-06 01:49:19 +00:00
Ted Kremenek
fe7a9601e9
Use ASTContext's allocator to deallocate Stmt objects instead of using 'delete'. This fixes <rdar://problem/6561143>.
...
llvm-svn: 63905
2009-02-06 01:42:09 +00:00
Dale Johannesen
9f3f72f144
Get rid of one more non-DebugLoc getNode and
...
its corresponding getTargetNode. Lots of
caller changes.
llvm-svn: 63904
2009-02-06 01:31:28 +00:00
Daniel Dunbar
ba3325af7b
ccc: Give explicit error on @ style argument lists (not yet supported).
...
llvm-svn: 63903
2009-02-06 01:28:59 +00:00
Owen Anderson
5a043f2cb1
Fix a crasher: we need to check that the function is non-null before using it!
...
llvm-svn: 63902
2009-02-06 00:13:43 +00:00
Daniel Dunbar
724167c280
ccc: Implement special language recognition handling for -.
...
- <rdar://problem/6551577> [ccc] require -x with -
llvm-svn: 63901
2009-02-05 23:44:44 +00:00
Owen Anderson
98a3617fba
Refactor my previous change to maintain the distinction between AliasAnalysis and BasicAliasAnalysis. This involves some wider changes because it
...
folds away some never-used methods.
llvm-svn: 63900
2009-02-05 23:36:27 +00:00
Douglas Gregor
eff93e0401
Improve the representation of template type parameters. We now
...
canonicalize by template parameter depth, index, and name, and the
unnamed version of a template parameter serves as the canonical.
TemplateTypeParmDecl no longer needs to inherit from
TemplateParmPosition, since depth and index information is present
within the type.
llvm-svn: 63899
2009-02-05 23:33:38 +00:00
Devang Patel
409b794cfe
Ignore dbg intrinsics while propagating conditional expression info. Take 2.
...
llvm-svn: 63898
2009-02-05 23:32:52 +00:00
Ted Kremenek
686a09d7b8
Updated checker build.
...
llvm-svn: 63897
2009-02-05 23:19:12 +00:00
Chris Lattner
6be3cd1073
allow mapping errors to fatal.
...
llvm-svn: 63896
2009-02-05 22:56:06 +00:00
Chris Lattner
9d6c4408d1
document fatal
...
llvm-svn: 63895
2009-02-05 22:49:08 +00:00
Chris Lattner
fbe2272fc8
add support to the diagnostics machinery for mapping warnings and
...
errors to 'fatal' error severity.
llvm-svn: 63894
2009-02-05 22:47:05 +00:00
Ted Kremenek
0ca23d3f73
Add 'AppendValue' to the list of magic CF function names that cause a tracked object to escape. Fixes <rdar://problem/6560661>.
...
llvm-svn: 63891
2009-02-05 22:34:53 +00:00
Evan Cheng
2599084ac5
isAsCheapAsMove instructions can have register src operands. Check if they are really re-materializable.
...
This fixes sse.expandfft and sse.stepfft.
llvm-svn: 63890
2009-02-05 22:24:17 +00:00
Dale Johannesen
f80493bbfd
Remove a non-DebugLoc version of getNode.
...
llvm-svn: 63889
2009-02-05 22:07:54 +00:00
Devang Patel
02f58e1e8d
Revert rev. 63876. It is causing llvm-gcc bootstrap failure.
...
llvm-svn: 63888
2009-02-05 21:46:41 +00:00
Dan Gohman
69d2cd92ba
Delete some trailing whiespaces.
...
llvm-svn: 63887
2009-02-05 21:34:56 +00:00
Dale Johannesen
3eb373f5ce
Remove 3 non-DebugLoc variants of getNode.
...
llvm-svn: 63886
2009-02-05 21:20:44 +00:00
Mike Stump
354d3de098
FIx spelling.
...
llvm-svn: 63883
2009-02-05 20:49:49 +00:00
Mike Stump
67f5ceaa82
Probe for flags before using them to try to help compiling with
...
compilers that don't support those flags. This hopefully will help
gcc 3.X compile this code. http://llvm.org/PR3487
llvm-svn: 63882
2009-02-05 20:45:27 +00:00
Fariborz Jahanian
33f66e640a
objc2's nonfragile-abi - API selection for when receiver is a class
...
llvm-svn: 63881
2009-02-05 20:41:40 +00:00
Devang Patel
58cb603d2a
Remove dead blocks in the end.
...
llvm-svn: 63880
2009-02-05 19:59:42 +00:00
Anders Carlsson
31f8649f83
Follow Eli's advice and store the VLA size with the native size_t type. Fixes PR3491.
...
llvm-svn: 63879
2009-02-05 19:43:10 +00:00
Fariborz Jahanian
4f9d349e07
More objc2's API chanes.
...
llvm-svn: 63878
2009-02-05 19:35:43 +00:00
Douglas Gregor
700792c4e4
Improvements and fixes for name lookup with using directives, from Piotr Rak!
...
Also, put Objective-C protocols into their own identifier
namespace. Otherwise, we find protocols when we don't want to in C++
(but not in C).
llvm-svn: 63877
2009-02-05 19:25:20 +00:00
Devang Patel
5922e26d1a
Ignore dbg intrinsics while propagating conditional expression info.
...
llvm-svn: 63876
2009-02-05 19:15:39 +00:00
Chris Lattner
df52dc7a6f
I didn't mean to change this.
...
llvm-svn: 63875
2009-02-05 19:05:56 +00:00
Chris Lattner
a936b393e4
testcase for rdar://6551276 and llvm-gcc r63873
...
llvm-svn: 63874
2009-02-05 18:15:17 +00:00
Torok Edwin
c6853c1531
Add Debian gcc 4.3 header search directories.
...
llvm-svn: 63872
2009-02-05 18:12:45 +00:00
Fariborz Jahanian
9065541262
#ifdef'out out objc2 API selection which is not done in gcc (unlike
...
the documentation to the contrary).
llvm-svn: 63871
2009-02-05 18:00:27 +00:00
Chris Lattner
413a0246f8
fix PR3488: llvm-ar r doesn't replace existing files
...
Patch by Daniel Shelton!
llvm-svn: 63870
2009-02-05 17:58:39 +00:00
Ted Kremenek
cc41c07227
Update checker build.
...
llvm-svn: 63869
2009-02-05 15:48:51 +00:00
Sebastian Redl
0fb63471de
Fix the symptom of the regression, by having the CXXConditionDeclExpr not destroy its Decl.
...
However, the cause still remains: the Decl is linked into the chain of its DeclContext and remains there despite being deleted.
llvm-svn: 63868
2009-02-05 15:12:41 +00:00