Rui Ueyama
5c65a0efd1
s/NULL/nullptr/
...
llvm-svn: 196994
2013-12-11 01:31:54 +00:00
Argyrios Kyrtzidis
74aa0256c9
[objcmt] Transfer '-objcmt-migrate-designated-init' from the driver to cc1 invocation.
...
llvm-svn: 196993
2013-12-11 01:29:48 +00:00
Rui Ueyama
2b7bb6c1f1
[PECOFF] WriterPECOFF: Rename getCharacteristics -> computeCharacteristics.
...
The base class has a member function with the same name. We should avoid it
being shadowed.
llvm-svn: 196992
2013-12-11 01:17:11 +00:00
Rui Ueyama
4b6b266823
[PECOFF] WriterPECOFF::ExecutableWriter: Small cleanup.
...
llvm-svn: 196991
2013-12-11 01:07:52 +00:00
Rafael Espindola
60f48e5a67
Move Sparc's getDataLayout out of line and add comments.
...
llvm-svn: 196990
2013-12-11 01:07:43 +00:00
Fariborz Jahanian
54f87385c0
ObjectiveC. Fixes a bug where an 'unused property ivar'
...
warning is coming out incorrectly too early
becuase of unrelated scope pop. // rdar://15630719
llvm-svn: 196989
2013-12-11 00:53:48 +00:00
NAKAMURA Takumi
8bc9bfaa5a
Prune redundant dependencies in LLVMBuild.txt.
...
llvm-svn: 196988
2013-12-11 00:30:57 +00:00
Rafael Espindola
5b3585871b
Move PPC's getDataLayoutString out of line and document it better.
...
llvm-svn: 196987
2013-12-11 00:09:06 +00:00
Reid Kleckner
ad92aca47c
Revert the backend fatal error from r196939
...
The combination of inline asm, stack realignment, and dynamic allocas
turns out to be too common to reject out of hand.
ASan inserts empy inline asm fragments and uses aligned allocas.
Compiling any trivial function containing a dynamic alloca with ASan is
enough to trigger the check.
XFAIL the test cases that would be miscompiled and add one that uses the
relevant functionality.
llvm-svn: 196986
2013-12-10 23:23:52 +00:00
Greg Clayton
4570d3eba0
Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case.
...
This has led to many test suite failures because of copy and paste where new test cases were based off of other test cases and the "mydir" variable wasn't updated.
Now you can call your superclasses "compute_mydir()" function with "__file__" as the sole argument and the relative path will be computed for you.
llvm-svn: 196985
2013-12-10 23:19:29 +00:00
Fariborz Jahanian
88b6898085
ObjectiveC. Provide a property-dot syntax for fixit
...
when selector in objc_bridge_related attribute names
a property. // rdar://15517899
llvm-svn: 196984
2013-12-10 23:18:06 +00:00
Greg Clayton
eeb15653c6
Fix the test suite after the changes made in revision 196616 exposed issues in the test suite.
...
We must make sure that all ValueObject objects always contain a valid target.
llvm-svn: 196983
2013-12-10 23:16:40 +00:00
David Fang
adcdde013a
style fix
...
llvm-svn: 196982
2013-12-10 23:13:11 +00:00
David Fang
073a7c9139
darwin asm driver: suppress -Q for -no-integrated-as on darwin<11
...
llvm-svn: 196981
2013-12-10 22:51:25 +00:00
Fariborz Jahanian
ddd28dc061
Objective-C. Minor change to a diagnostic.
...
// rdar://15499111
llvm-svn: 196977
2013-12-10 22:22:45 +00:00
Rafael Espindola
002f8aa584
Refactor the computation of the x86 datalayout.
...
llvm-svn: 196976
2013-12-10 22:05:32 +00:00
Reid Kleckner
30b2a9a59f
[asan] Fix the coverage.cc test broken by r196939
...
It was failing because ASan was adding all of the following to one
function:
- dynamic alloca
- stack realignment
- inline asm
This patch avoids making the static alloca dynamic when coverage is
used.
ASan should probably not be inserting empty inline asm blobs to inhibit
duplicate tail elimination.
llvm-svn: 196973
2013-12-10 21:49:28 +00:00
Matt Arsenault
eaa3a7efab
Use llvm_unreachable instead of assert(0)
...
llvm-svn: 196971
2013-12-10 21:37:42 +00:00
David Fang
1b01849f2d
on darwin<10, fallback to .weak_definition (PPC,X86)
...
.weak_def_can_be_hidden was not yet supported by the system assembler
llvm-svn: 196970
2013-12-10 21:37:41 +00:00
Chad Rosier
17c248a7a2
[AArch64] Refactor the NEON floating-point absolute difference LLVM AArch64
...
intrinsic to use f32/f64 types, rather than their vector equivalents.
llvm-svn: 196969
2013-12-10 21:34:23 +00:00
Chad Rosier
37051a80e9
[AArch64] Refactor the NEON signed/unsigned floating-point convert to fixed-point
...
LLVM AArch64 intrinsics to use f32/f64, rather than their vector equivalents.
llvm-svn: 196968
2013-12-10 21:34:21 +00:00
Chad Rosier
8f6f3d124c
[AArch64] Overload NEON signed/unsigned floating-point convert to fixed-point
...
and fixed-point convert to floating-point LLVM AArch64 intrinsics.
llvm-svn: 196967
2013-12-10 21:34:20 +00:00
Chad Rosier
11a78c86e1
[AArch64] Overload NEON signed/unsigned integer convert to floating-point
...
LLVM AArch64 intrinsics.
llvm-svn: 196966
2013-12-10 21:34:17 +00:00
Chad Rosier
f70af21651
[AArch64] Refactor the NEON floating-point absolute difference LLVM AArch64
...
intrinsic to use f32/f64 types, rather than their vector equivalents.
llvm-svn: 196965
2013-12-10 21:33:59 +00:00
Chad Rosier
07cc3f9100
[AArch64] Refactor the NEON signed/unsigned floating-point convert to fixed-point
...
LLVM AArch64 intrinsics to use f32/f64, rather than their vector equivalents.
llvm-svn: 196964
2013-12-10 21:33:56 +00:00
Chad Rosier
98b8baa35c
[AArch64] Overload NEON signed/unsigned floating-point convert to fixed-point
...
and fixed-point convert to floating-point LLVM AArch64 intrinsics.
llvm-svn: 196963
2013-12-10 21:33:53 +00:00
Chad Rosier
cc34d187b8
[AArch64] Overload NEON signed/unsigned integer convert to floating-point
...
LLVM AArch64 intrinsics.
llvm-svn: 196962
2013-12-10 21:33:50 +00:00
Justin Bogner
ab403f463a
Parse: Avoid crashing on unterminated top-level asm strings
...
When parsing invalid top-level asm statements, we were ignoring the
return code of the SkipUntil we used for recovery. This led to crashes
when we hit the end of file and tried to continue parsing anyway.
This fixes the crash and adds a couple of tests for parsing related
problems.
llvm-svn: 196961
2013-12-10 21:29:48 +00:00
Matt Arsenault
29da7178c8
R600/SI: Add i64 cmp tests
...
llvm-svn: 196960
2013-12-10 21:11:55 +00:00
Richard Smith
8d18385e1c
Tiny cleanup, as suggested by David Blaikie.
...
llvm-svn: 196959
2013-12-10 20:56:03 +00:00
Sergey Matveev
072db59483
Rewrite docs/LeakSanitizer.rst. Add it to index.
...
llvm-svn: 196957
2013-12-10 20:10:30 +00:00
Greg Clayton
d30ed41c13
Revert change I didn't mean to check in.
...
llvm-svn: 196956
2013-12-10 19:44:41 +00:00
Ted Kremenek
f41cf7f10f
Rename attribute 'objc_suppress_protocol_methods' to 'objc_protocol_requires_explicit_implementation'.
...
That's a mouthful, and not necessarily the final name. This also
reflects a semantic change where this attribute is now on the
protocol itself instead of a class. This attribute will require
that a protocol, when adopted by a class, is explicitly implemented
by the class itself (instead of walking the super class chain).
Note that this attribute is not "done". This should be considered
a WIP.
llvm-svn: 196955
2013-12-10 19:43:48 +00:00
Ted Kremenek
d980da2290
Enhance attribute machinery to include ObjCProtocols as "subjects" in attribute declarations.
...
llvm-svn: 196954
2013-12-10 19:43:42 +00:00
Richard Smith
0b7f1187aa
Add a triple to this IRgen test to unbreak the ARM bots.
...
llvm-svn: 196953
2013-12-10 19:37:58 +00:00
Greg Clayton
c93068b54f
Add the "--unix-socket" opton back as it was being used.
...
<rdar://problem/15622900>
llvm-svn: 196952
2013-12-10 19:36:45 +00:00
Marshall Clow
6bc32ebf35
Refactored a bunch of duplicated code in <ostream>. Made a new routine called __put_character_sequence, and made nine places call it.
...
llvm-svn: 196951
2013-12-10 19:25:49 +00:00
Fariborz Jahanian
7c04a55545
Improve on an objc_bridge_related diagnostic.
...
// rdar://15499111
llvm-svn: 196950
2013-12-10 19:22:41 +00:00
Greg Clayton
765d2e234c
Fix autocompletion for multi-word commands.
...
<rdar://problem/14183288>
llvm-svn: 196949
2013-12-10 19:14:04 +00:00
Matt Arsenault
d326252d29
Fix minor gcc warnings.
...
C++ style comments not allowed in C90,
signed unsigned comparision.
llvm-svn: 196948
2013-12-10 19:05:43 +00:00
Matt Arsenault
0f5f015bfd
Fix gcc warnings.
...
Unused variable and unused typedef in release build.
llvm-svn: 196947
2013-12-10 18:55:37 +00:00
David Peixotto
fe078843a0
Make the -via-file-asm an InternalDebugOpt
...
We do not need to expose this flag to the user. This commit makes
the flag an interal debug option that will only display its help
when printing with --help-hidden.
llvm-svn: 196946
2013-12-10 18:49:55 +00:00
Argyrios Kyrtzidis
d5ba86be0d
[Driver] Rename '-objcmt-white-list-dir-path' option to '-objcmt-whitelist-dir-path' and add an alias for now.
...
llvm-svn: 196944
2013-12-10 18:36:53 +00:00
Argyrios Kyrtzidis
4f2ecc6177
[objcmt] Add a modernization option to infer and suggest designated initializers.
...
rdar://15509284
llvm-svn: 196943
2013-12-10 18:36:49 +00:00
Argyrios Kyrtzidis
e919fc20a6
[AST] In ObjCInterfaceDecl::isDesignatedInitializer(), use getMethod() instead of lookupMethod().
...
lookupMethod also goes through categories, which we don't need there.
llvm-svn: 196942
2013-12-10 18:36:43 +00:00
Ed Maste
8f46ed79bd
test: Skip register test hanging on FreeBSD buildbot
...
llvm-svn: 196941
2013-12-10 18:35:19 +00:00
Reid Kleckner
5dc20b13e7
Update clang MS inline asm tests for r196939
...
llvm-svn: 196940
2013-12-10 18:27:51 +00:00
Reid Kleckner
ee08897fb8
Reland "Fix miscompile of MS inline assembly with stack realignment"
...
This re-lands commit r196876, which was reverted in r196879.
The tests have been fixed to pass on platforms with a stack alignment
larger than 4.
Update to clang side tests will land shortly.
llvm-svn: 196939
2013-12-10 18:27:32 +00:00
Jordan Rose
6f2f39006b
[analyzer] Misc. tidying in IdenticalExprChecker.
...
Some things I missed when this first went in.
llvm-svn: 196938
2013-12-10 18:18:10 +00:00
Jordan Rose
60bd88d341
[analyzer] Extend IdenticalExprChecker to check ternary operator results.
...
Warn if both result expressions of a ternary operator (? :) are the same.
Because only one of them will be executed, this warning will fire even if
the expressions have side effects.
Patch by Anders Rönnholm and Per Viberg!
llvm-svn: 196937
2013-12-10 18:18:06 +00:00