Chad Rosier
1cdb85e048
Add unittests for Triple::getMacOSXVersion and Triple::getiOSVersion.
...
llvm-svn: 156507
2012-05-09 19:31:41 +00:00
Danil Malyshev
47aba39004
Added a regress test for the bug #9964 before close it.
...
This bug was fixed by Jim Grosbach in #138879 , thanks Jim!
llvm-svn: 156505
2012-05-09 19:07:04 +00:00
Filipe Cabecinhas
3a9b6e7140
Make redo.py more error-proof
...
Deal with being passed no parameters
Remove the infinite loop when it's passed something like --help
llvm-svn: 156504
2012-05-09 19:02:19 +00:00
Richard Smith
3092a3b43c
Stop AltiVec parsing from going down the 'implicit int' codepath as part of its
...
normal parse for token sequences like 'vector pixel foo'. This incidentally also
fixes a couple of wrong-parse issues.
llvm-svn: 156503
2012-05-09 18:56:43 +00:00
Chad Rosier
7b1fee1fe5
Roll logic into a single if statement, per David's suggestion.
...
llvm-svn: 156502
2012-05-09 18:55:57 +00:00
Chad Rosier
bf8628e62f
Use the triple directly, rather then getTriple().
...
llvm-svn: 156501
2012-05-09 18:51:13 +00:00
Simon Atanasyan
ce005eb2c6
Pass a target triple explicitly to check platform specific macros definitions.
...
That allows to run the tests on all platforms successfully.
llvm-svn: 156500
2012-05-09 18:49:52 +00:00
Chad Rosier
266c620623
Now the proper fix for r156497. Sorry for the churn.
...
llvm-svn: 156498
2012-05-09 18:46:30 +00:00
Chad Rosier
6037c6bae0
Move the iOSVersionMin string to a header so as to avoid a dangling pointer.
...
llvm-svn: 156497
2012-05-09 18:37:26 +00:00
Jim Ingham
5ce45fdfb1
Remove the string pool from the global destructor chain so it doesn't get yanked out from under us prematurely on exit.
...
rdar://problem/11358062
llvm-svn: 156496
2012-05-09 18:37:10 +00:00
David Blaikie
c9bd941f1f
Fix -Wdelete-non-virtual-dtor in Tooling code.
...
Also, add an anchor as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch
llvm-svn: 156495
2012-05-09 18:31:50 +00:00
Roman Divacky
e07cc042f6
Mark .opd @progbits, thus avoiding a warning from asm.
...
llvm-svn: 156494
2012-05-09 18:24:23 +00:00
Chad Rosier
3adc08e1ad
Update test case for new default of 3.0
...
llvm-svn: 156493
2012-05-09 18:23:04 +00:00
Chad Rosier
9d7b1cee39
Set the default iOS version to 3.0.
...
llvm-svn: 156492
2012-05-09 18:23:00 +00:00
Roman Divacky
d966e723f7
Implement PPC64TargetCodeGenInfo.
...
llvm-svn: 156491
2012-05-09 18:22:46 +00:00
Jim Grosbach
6f855e3024
ARM: Support marking intrinsic definitions as 'unavailable'
...
llvm-svn: 156490
2012-05-09 18:17:30 +00:00
Chad Rosier
f761fe9d23
[driver] Use the iOS target triple to infer the deployment target.
...
rdar://11409204
llvm-svn: 156489
2012-05-09 18:09:58 +00:00
Anna Zaks
951949723d
[analyzer]Extend the available checks list and the release notes for 264
...
llvm-svn: 156488
2012-05-09 17:57:16 +00:00
Bob Wilson
e78227b1ff
Ignore a "generic" return value from getHostCPUName. <rdar://problem/11314502>
...
llvm-svn: 156487
2012-05-09 17:53:10 +00:00
Bob Wilson
8d4e2fab63
Use the cpuid 64 bit flag to pick the default CPU name for an unknown model.
...
For the Family 6 switch in sys::getHostCPUName, an unrecognized model was
reported as "i686". That's a really bad default since it means that new
CPUs will be treated as if they can only use 32-bit code. This just looks
at the cpuid extended feature flag for 64 bit support, and if that is set,
it uses a default x86-64 cpu. Similar logic is already used for the Family
15 code. <rdar://problem/11314502>
llvm-svn: 156486
2012-05-09 17:47:03 +00:00
Argyrios Kyrtzidis
dd83f5e779
[libclang] Add a test for objc boxed expressions.
...
rdar://11407754
llvm-svn: 156485
2012-05-09 17:46:47 +00:00
Chad Rosier
2778cbc880
Don't return true on a function with a void return type.
...
llvm-svn: 156484
2012-05-09 17:38:47 +00:00
Chad Rosier
d84eaac673
Add Triple::getiOSVersion.
...
This new function provides a way to get the iOS version number from ios triples.
Part of rdar://11409204
llvm-svn: 156483
2012-05-09 17:23:48 +00:00
Anna Zaks
d60f4c8fef
[analyzer] Simplify r156446, as per Ted's review.
...
llvm-svn: 156482
2012-05-09 17:23:15 +00:00
Anna Zaks
325520a7b8
[analyzer] Allow pointers to escape through selector callbacks.
...
llvm-svn: 156481
2012-05-09 17:23:11 +00:00
Fariborz Jahanian
44645837bc
Remove this test again which fails the build-bot for reasons yet
...
unknown to me.
llvm-svn: 156480
2012-05-09 17:18:19 +00:00
Hans Wennborg
b7ef2fe8ae
Introduce llvm-c function LLVMPrintModuleToFile.
...
This lets you save the textual representation of the LLVM IR to a file.
Before this patch it could only be printed to STDERR from llvm-c.
Patch by Carlo Kok!
llvm-svn: 156479
2012-05-09 16:54:17 +00:00
Simon Atanasyan
32df72db66
Declare abstract class ArgumentsAdjuster. This abstract interface describes
...
a command line argument adjuster, which is responsible for command line
arguments modification before the arguments are used to run a frontend action.
Define class ClangSyntaxOnlyAdjuster implements ArgumentsAdjuster interface.
This class converts input command line arguments to the "syntax check only"
variant.
Reviewed by Manuel Klimek.
llvm-svn: 156478
2012-05-09 16:18:30 +00:00
Fariborz Jahanian
cbabea83d4
Re-add test for // rdar://11374235
...
llvm-svn: 156477
2012-05-09 16:15:46 +00:00
Argyrios Kyrtzidis
08f96a9b5e
[AST/libclang] Speed up clang_getOverriddenCursors() considerably by reserving a bit
...
in ObjCMethodDecl to indicate whether the method does not override any other method,
which is the majority of cases.
That way we can avoid unnecessary work doing lookups, especially when PCH is involved.
rdar://11360082
llvm-svn: 156476
2012-05-09 16:12:57 +00:00
Nuno Lopes
ddcce0bb90
update calls to objectsize intrinsic to match LLVM r156473
...
add a test for -fbounds-checking code generation
llvm-svn: 156474
2012-05-09 15:53:34 +00:00
Nuno Lopes
01547b3ad2
change the objectsize intrinsic signature: add a 3rd parameter to denote the maximum runtime performance penalty that the user is willing to accept.
...
This commit only adds the parameter. Code taking advantage of it will follow.
llvm-svn: 156473
2012-05-09 15:52:43 +00:00
Manuel Klimek
13cfa00018
Make it possible to switch off solution folders. VS Express does not support
...
them, and requires the user to click away one error message per folder on
project load.
llvm-svn: 156472
2012-05-09 15:10:54 +00:00
Filipe Cabecinhas
5c43305383
Fixed a typo
...
llvm-svn: 156471
2012-05-09 14:43:50 +00:00
Bill Wendling
a3aeb980d2
Supply a C interface to the "LinkModules" method.
...
Patch by Andrew Wilkins!
llvm-svn: 156469
2012-05-09 08:55:40 +00:00
Richard Smith
45855df4c6
Recover properly if a class member declaration starts with a scope specifier
...
or template-id which can't be parsed.
llvm-svn: 156468
2012-05-09 08:23:23 +00:00
Craig Topper
28540adfcf
Remove unused variable to get rid of warning.
...
llvm-svn: 156466
2012-05-09 07:08:58 +00:00
Ted Kremenek
25498d0afa
Fix Engrish.
...
llvm-svn: 156465
2012-05-09 06:29:38 +00:00
Ted Kremenek
7ebb493375
Teach IsTailPaddedMemberArray() (used by -Warray-bounds) that a FieldDecl may have a Typedef type, and not always a ConstantArrayType.
...
Fixes <rdar://problem/11387038>.
llvm-svn: 156464
2012-05-09 05:35:08 +00:00
Richard Smith
6f8d2c6c9c
A little tweak to the SFINAE condition reporting. Don't say:
...
candidate template ignored: substitution failed [with T = int]: no type named 'type' in 'std::enable_if<false, void>'
Instead, just say:
candidate template ignored: disabled by 'enable_if' [with T = int]
... and point at the enable_if condition which (we assume) failed.
This is applied to all cases where the user writes 'typename enable_if<...>::type' (optionally prefixed with a nested name specifier), and 'enable_if<...>' names a complete class type which does not have a member named 'type', and this results in a candidate function being ignored in a SFINAE context. Thus it catches 'std::enable_if', 'std::__1::enable_if', 'boost::enable_if' and 'llvm::enable_if'.
llvm-svn: 156463
2012-05-09 05:17:00 +00:00
Ted Kremenek
9133c34a2a
Fix typo.
...
llvm-svn: 156462
2012-05-09 04:35:15 +00:00
Akira Hatanaka
ca41d13bbd
Add another peephole pattern for conditional moves.
...
llvm-svn: 156460
2012-05-09 02:29:29 +00:00
Jakob Stoklund Olesen
7e21d617ef
Use ptr_rc_tailcall instead of GR32_TC.
...
The getPointerRegClass() hook will return GR32_TC, or whatever is
appropriate for the current function.
Patch by Yiannis Tsiouris!
llvm-svn: 156459
2012-05-09 01:50:09 +00:00
Akira Hatanaka
05b9dad1e6
Make register FP allocatable if the compiled function does not have dynamic
...
allocas.
llvm-svn: 156458
2012-05-09 01:38:13 +00:00
Akira Hatanaka
0a8ab718cb
Expand 64-bit shifts if target ABI is O32.
...
llvm-svn: 156457
2012-05-09 00:55:21 +00:00
Richard Trieu
edf46e6b6e
Remove unused variable to silence compiler warning.
...
llvm-svn: 156456
2012-05-09 00:30:21 +00:00
Fariborz Jahanian
f60f5ee43d
Remove thid test for now.
...
llvm-svn: 156455
2012-05-09 00:27:52 +00:00
Richard Trieu
64c51abf7f
Update the SelfReferenceChecker. Refactored some of the visitor methods.
...
Added support for conditional operators and tightened the exclusion of the
unary operator from all operators to only the address of operator.
llvm-svn: 156450
2012-05-09 00:21:34 +00:00
Ted Kremenek
368aad45d7
Update checker build.
...
llvm-svn: 156449
2012-05-09 00:08:47 +00:00
Bob Wilson
7789aae96d
Do not install llvm-config-host for cross-builds of clang. rdar://11317847
...
My previous change to install llvm-config-host for cross-builds resulted
in that file being installed even when the normal llvm-config was not
installed, e.g., when building the install-clang target. Daniel suggested
this alternative, which solves the immediate problem and also avoids the gunk
in the top-level makefile.
llvm-svn: 156448
2012-05-09 00:07:02 +00:00