Nico Weber
9035951409
Let Expr::HasSideEffects() return false for NULL, bool literals, this, and nullptr.
...
Fixes PR13413, -Wunused-private-field now warns on unused fields initialized to NULL.
llvm-svn: 160541
2012-07-20 03:39:05 +00:00
Owen Anderson
3a8bdb5677
Make RegisterOperand a subclass of DAGOperand so that RegisterOperands can be passed into multiclasses that take DAGOperands as multiclass parameters.
...
llvm-svn: 160540
2012-07-20 03:38:19 +00:00
Jason Molenda
d9d5cf5413
Change the things we pass to Mangled::SetValue to be ConstStrings instead of
...
char*'s - Greg removed the methods which accept char*'s earlier today.
llvm-svn: 160539
2012-07-20 03:35:44 +00:00
Nico Weber
55a952bfcf
Rename warn-unused-member.cpp to warn-unused-private-field.cpp to
...
make it match the flag it tests.
llvm-svn: 160536
2012-07-20 01:42:44 +00:00
Chandler Carruth
1649088ba1
Switch to the canonical pipe-based testing of clang output using
...
FileCheck.
This avoids copying files around needlessly during test runs.
llvm-svn: 160535
2012-07-20 00:49:53 +00:00
Chandler Carruth
1687e0ed35
Remove dos line endings. Please remember to configure your windows SVN
...
clients to default text files to 'eol-native'.
llvm-svn: 160534
2012-07-20 00:49:51 +00:00
Nick Lewycky
7707e23429
Revert r160529 due to crashes.
...
llvm-svn: 160532
2012-07-19 23:59:21 +00:00
Pete Cooper
dcf94db677
Fix crash in machine verifier when trying to print the def of a register which has no def
...
llvm-svn: 160531
2012-07-19 23:40:38 +00:00
Anna Zaks
3136cf9d5b
[analyzer] Refactor VisitObjCMessage and VisitCallExpr to rely on the
...
same implementation for call evaluation.
llvm-svn: 160530
2012-07-19 23:38:13 +00:00
Nick Lewycky
0fa6a28141
Don't wipe out global variables that are probably storing pointers to heap
...
memory. This makes clang play nice with leak checkers.
llvm-svn: 160529
2012-07-19 22:35:28 +00:00
Eric Christopher
4bbb3c459e
FileCheck-ize.
...
llvm-svn: 160528
2012-07-19 22:22:58 +00:00
Eric Christopher
f8378ca2b1
Remove HasSynthBitfield and all callers/writers/etc. Also remove
...
previous ResetObjCLayout calls since this is now handled in Sema.
Part of rdar://11842763
llvm-svn: 160527
2012-07-19 22:22:55 +00:00
Eric Christopher
7457aaf8c9
Reset the layout of an ObjC class if we see an ivar in a category
...
or implementation since we've now got a different layout.
Fixes rdar://11842763
llvm-svn: 160526
2012-07-19 22:22:51 +00:00
Galina Kistanova
27540f8d8c
Reverting r 160419.
...
llvm-svn: 160525
2012-07-19 21:43:55 +00:00
Greg Clayton
8e59d2d940
Fixed the file header to match the filename.
...
llvm-svn: 160524
2012-07-19 21:24:56 +00:00
Greg Clayton
f866543a36
Fixed the comment for the lldb_private::PathType enumerations.
...
llvm-svn: 160523
2012-07-19 21:23:34 +00:00
Aaron Ballman
44475e2771
Removing a spurious comment, no functionality changes.
...
llvm-svn: 160522
2012-07-19 21:00:48 +00:00
Preston Gurd
8e082688a1
Adds the family codes for the Midview Atom processors so that the
...
Atom buildbot will auto-detect Atom.
llvm-svn: 160521
2012-07-19 19:05:37 +00:00
Preston Gurd
f2ea70ae4a
Fix remaining lit tests which were failing when run on an Atom
...
processor.
Patches by Tyler Nowicki, Andy Zhang, and Preston Gurd!
llvm-svn: 160520
2012-07-19 18:53:21 +00:00
Dmitri Gribenko
a309c95d41
CommentDumper: print word-like arguments for block commands.
...
llvm-svn: 160519
2012-07-19 18:43:24 +00:00
Sebastian Pop
221e07e140
default to use -mv4 when no version of Hexagon has been specified
...
This fixes a bunch of make check failures of the form:
Unknown Architecture Version.
UNREACHABLE executed at ../lib/Target/Hexagon/HexagonSubtarget.cpp:60!
llvm-svn: 160518
2012-07-19 18:24:50 +00:00
Jordan Rose
3e0ec58c09
For varargs, diagnose passing ObjC objects by value like other non-POD types.
...
While we still want to consider this a hard error (non-POD variadic args are
normally a DefaultError warning), delaying the diagnostic allows us to give
better error messages, which also match the usual non-POD errors more closely.
In addition, this change improves the diagnostic messages for format string
argument type mismatches by passing down the type of the callee, so we can
say "variadic method" or "variadic function" appropriately.
<rdar://problem/11825593>
llvm-svn: 160517
2012-07-19 18:10:23 +00:00
Jordan Rose
96c49686b9
Capitalize "Objective-C" and "C++" in user-facing contexts.
...
No functionality change.
llvm-svn: 160516
2012-07-19 18:10:18 +00:00
Jordan Rose
58bbe4206f
Don't crash checking a format string if one of the arguments is invalid.
...
Previously, we would ask for the SourceLocation of an argument even if
it were NULL (i.e. if Sema resulted in an ExprError trying to build it).
<rdar://problem/11890818>
llvm-svn: 160515
2012-07-19 18:10:08 +00:00
Sean Callanan
224f6f5382
Changed ProcessGDBRemote to avoid the reserved
...
port range. Also added a comment indicating that
more work is needed.
<rdar://problem/11580051>
llvm-svn: 160514
2012-07-19 18:07:36 +00:00
Nuno Lopes
c14776d406
reimplement truncate() to make it optimal.
...
It is optimal at least up to 7 bits (I've tested all such cases)
This change to truncate() allows a little simplification to the multiplication code,
and it also makes multiplication optimal :)
llvm-svn: 160512
2012-07-19 16:27:45 +00:00
Argyrios Kyrtzidis
ac4cdc8ef4
Add a test case for rdar://11806334.
...
Makes sure we don't overflow the stack.
llvm-svn: 160511
2012-07-19 16:08:28 +00:00
Howard Hinnant
07ce90bb9d
Jean-Daniel : clang now supports all required type_traits.
...
llvm-svn: 160510
2012-07-19 15:59:52 +00:00
Howard Hinnant
51eb2adb2d
Jean-Daniel updates the libc++ index page to reflect not so recent changes in C++ standard status.
...
llvm-svn: 160509
2012-07-19 15:57:51 +00:00
Alexey Samsonov
3735faa108
[ASan] subtract one from PCs in ASan error reports (as they originally contain return addresses). Make output tests stricter.
...
llvm-svn: 160508
2012-07-19 15:07:26 +00:00
Benjamin Kramer
347d559323
Pull the simple parts of DenseMapInfo<DebugLoc> inline and prune includes.
...
llvm-svn: 160507
2012-07-19 15:00:34 +00:00
Filipe Cabecinhas
e6dc330748
Make git not delete my_working_dir. Otherwise a git checkout would be different from an svn checkout.
...
llvm-svn: 160506
2012-07-19 13:53:12 +00:00
NAKAMURA Takumi
67ce1930c1
test/DebugInfo/dwarfdump-test.test: Tweak expressions for Win32 to match backslashes. They are still odd, though.
...
For example, Paths are printed on Win32 as below;
/tmp/dbginfo\def2.cc:4:0
/tmp/dbginfo\include\decl2.h:1:0
/tmp/include\decl.h:5:0
llvm-svn: 160505
2012-07-19 13:40:09 +00:00
Kostya Serebryany
7a32f8dcb8
[tsan] fix lint
...
llvm-svn: 160504
2012-07-19 12:22:04 +00:00
Kostya Serebryany
a415df6539
[tsan] minor fixes in tsan allocator and its testlib. Now runs fine with chrome
...
llvm-svn: 160503
2012-07-19 12:15:33 +00:00
Alexander Potapenko
628b349b17
Suppress the stderr output from atos.
...
llvm-svn: 160502
2012-07-19 12:01:07 +00:00
Benjamin Kramer
f364a63c3e
Replace some explicit compare loops with std::equal.
...
No functionality change.
llvm-svn: 160501
2012-07-19 10:46:05 +00:00
Jush Lu
e67e07b901
[arm-fast-isel] Add support for vararg function calls.
...
llvm-svn: 160500
2012-07-19 09:49:00 +00:00
Alexey Samsonov
7acdc1738f
[Sanitizer] When obtaining the data for loaded modules, add address ranges of loadable segments only. Looks like address range of PT_TLS segment may intersect with loadable segments of other modules.
...
llvm-svn: 160498
2012-07-19 07:51:20 +00:00
Alexey Samsonov
e16e16add6
DebugInfo library: add support for fetching absolute paths to source files
...
(instead of basenames) from DWARF. Use this behavior in llvm-dwarfdump tool.
Reviewed by Benjamin Kramer.
llvm-svn: 160496
2012-07-19 07:03:58 +00:00
Ted Kremenek
6080d32194
Simplify UninitializedValues.cpp by removing logic to handle the previous (imprecise) representation
...
of '&&' and '||' in the CFG. This is no longer needed, and greatly simplifies the code.
llvm-svn: 160494
2012-07-19 04:59:05 +00:00
Galina Kistanova
aaf9735951
Fixed few warnings.
...
llvm-svn: 160493
2012-07-19 04:50:12 +00:00
Michael Han
7973250e33
Remove an unused header
...
llvm-svn: 160492
2012-07-19 04:10:19 +00:00
Bob Wilson
6a039161d7
Define __FINITE_MATH_ONLY__ based on -ffast-math and -ffinite-math-only.
...
This macro was being unconditionally set to zero, preceded by a FIXME comment.
This fixes <rdar://problem/11845441>. Patch by Michael Gottesman!
llvm-svn: 160491
2012-07-19 03:52:53 +00:00
Aaron Ballman
24a1047c8c
Relaxed enumeration constant naming rules for scoped enumerators so they no longer emit a diagnostic when the enumeration's name matches that of the class. Fixes PR13128.
...
llvm-svn: 160490
2012-07-19 03:12:23 +00:00
Richard Smith
18eff57031
Silence another GCC warning.
...
llvm-svn: 160488
2012-07-19 03:08:07 +00:00
Greg Clayton
7dab2be287
<rdar://problem/11908082>
...
Allow debugserver to match process names that are longer than MAXCOMLEN (16) characters. We do this by digging up argv[0] from another sysctl if the process name supplied is longer than 16 characters.
llvm-svn: 160487
2012-07-19 02:45:35 +00:00
NAKAMURA Takumi
9efaf227d1
Revert r160404, "Eliminating the GCC_CAST hack, take two.", for now.
...
It crashes mingw32-gcc-4.4.
llvm-svn: 160486
2012-07-19 02:27:55 +00:00
Richard Smith
b1680655a6
Silence GCC warnings.
...
llvm-svn: 160485
2012-07-19 01:53:26 +00:00
Bob Wilson
25d3bfd895
Force the OS X version to 10.6 for old-style simulator builds.
...
The hack of recognizing a -D__IPHONE_OS_VERSION_MIN_REQUIRED option
in place of -mios-simulator-version-min leaves the Darwin version
unspecified. It can be set separately with -mmacosx-version-min (which
makes no sense) or inferred to match the host version (which is unpredictable
and usually wrong). This really needs to get cleaned up, but in the
meantime, force the OS X version to 10.6 so that the behavior is sane for
the iOS simulator. Thanks for Argyrios for the patch.
<rdar://problem/11858187>
llvm-svn: 160484
2012-07-19 01:35:55 +00:00