Eric Christopher
f5dad49a65
Only emit debug information for methods that are user defined, there's
...
not much reason to emit for constructors and destructors that aren't
user defined.
rdar://11593099
llvm-svn: 157970
2012-06-05 00:15:06 +00:00
Johnny Chen
974759fd8b
Funnel the old API call SBValue::Watch (bool resolve_location, bool read, bool write) to the one which takes an SBError.
...
llvm-svn: 157969
2012-06-05 00:14:15 +00:00
Jordan Rose
97c6f2b9e5
Teach format string checking about compile-time CFString constants.
...
Within the guts of CheckFormatHandler, the IsObjCLiteral flag was being used in
two ways: to see if null bytes were allowed, and to see if the '%@' specifier
is allowed.* The former usage has been changed to an explicit test and the
latter pushed down to CheckPrintfHandler and renamed ObjCContext, since it
applies to CFStrings as well.
* This also changes how wide chars are interpreted; in OS X Foundation, the
wide character type is 'unichar', a typedef for short, rather than wchar_t.
llvm-svn: 157968
2012-06-04 23:52:23 +00:00
Johnny Chen
d3761a7e10
Cannot break the existing API client of SBValue::Watch(bool resolve_location, bool read, bool write).
...
Leave this method in the codebase for a while.
llvm-svn: 157967
2012-06-04 23:45:50 +00:00
Joel Jones
d08534f82e
This change handles a another case for generating the bic instruction
...
when a compile time constant is known. This occurs when implicitly zero
extending function arguments from 16 bits to 32 bits.
<rdar://problem/11481151>
llvm-svn: 157966
2012-06-04 23:38:57 +00:00
Greg Clayton
f51a23fb6f
Cleaned up some stuff in symbolication where we can now lazily get images when symbolicating after loading a crash log file.
...
Added colorization to the gdbremote.py output and also added the ability to symbolicate the addresses in registers.
llvm-svn: 157965
2012-06-04 23:22:17 +00:00
Johnny Chen
b90827e66c
rdar://problem/11584012
...
Refactorings of watchpoint creation APIs so that SBTarget::WatchAddress(), SBValue::Watch(), and SBValue::WatchPointee()
now take an additional 'SBError &error' parameter (at the end) to contain the reason if there is some failure in the
operation. Update 'watchpoint set variable/expression' commands to take advantage of that.
Update existing test cases to reflect the API change and add test cases to verify that the SBError mechanism works for
SBTarget::WatchAddress() by passing an invalid watch_size.
llvm-svn: 157964
2012-06-04 23:19:54 +00:00
Jakob Stoklund Olesen
188d830405
Delete dead code.
...
llvm-svn: 157963
2012-06-04 23:01:41 +00:00
Jordan Rose
614e72bec7
Make suggestions for mismatched enum arguments to printf/scanf.
...
llvm-svn: 157962
2012-06-04 22:49:02 +00:00
Jordan Rose
98709985a6
Teach printf/scanf about enums with fixed underlying types.
...
llvm-svn: 157961
2012-06-04 22:48:57 +00:00
Jim Ingham
a8f556657f
-i option should apply to "-n" as well as "-F".
...
llvm-svn: 157960
2012-06-04 22:47:34 +00:00
Richard Smith
50fba8f0a9
PR13022: cope with parenthesized function types in MS name mangling.
...
llvm-svn: 157959
2012-06-04 22:46:59 +00:00
Rafael Espindola
47d988c54c
When gvn decides to replace an instruction with another, we have to patch the
...
replacement to make it at least as generic as the instruction being replaced.
This includes:
* dropping nsw/nuw flags
* getting the least restrictive tbaa and fpmath metadata
* merging ranges
Fixes PR12979.
llvm-svn: 157958
2012-06-04 22:44:21 +00:00
Jakob Stoklund Olesen
11fb248aa6
Switch LiveIntervals member variable to LLVM naming standards.
...
No functional change.
llvm-svn: 157957
2012-06-04 22:39:14 +00:00
Sean Callanan
a0b80aba46
Fixed handling of Objective-C properties to ensure
...
that automatically generated setters/getters only
get added to a class after explicitly declared (or
synthesized) getters/setters had the chance to be
added. This eliminates conflicts creating errors
of the form:
error: instance method '...' has incompatible result
types in different translation units ('X *' vs. 'id')
llvm-svn: 157956
2012-06-04 22:28:05 +00:00
Richard Smith
eb3cad53e7
Add a warning for when an array-to-pointer decay is performed on an array
...
temporary or an array subobject of a class temporary, and the resulting value
is used to initialize a pointer which outlives the temporary. Such a pointer
is always left dangling after the initialization completes and the array's
lifetime ends.
In order to detect this situation, this change also adds an
LValueClassification of LV_ArrayTemporary for temporaries of array type which
aren't subobjects of class temporaries. These occur in C++11 T{...} and GNU C++
(T){...} expressions, when T is an array type. Previously we treated the former
as a generic prvalue and the latter as a class temporary.
llvm-svn: 157955
2012-06-04 22:27:30 +00:00
Anna Zaks
06caff46c0
[analyzer] Fixup for r157950. Unbreak the bots.
...
llvm-svn: 157954
2012-06-04 21:59:02 +00:00
Nico Weber
4d2d33f3ba
Document how fixits on errors and warnings must behave.
...
Review and wording tweaks by Richard.
llvm-svn: 157953
2012-06-04 21:56:14 +00:00
Eric Christopher
3f7c44a131
Add a testcase for C++11 union support.
...
llvm-svn: 157952
2012-06-04 21:32:12 +00:00
Argyrios Kyrtzidis
6310fdd982
[objcmt] Don't migrate to subscripting syntax if the required methods have not
...
been declared on NSArray/NSDictionary.
rdar://11581975
llvm-svn: 157951
2012-06-04 21:23:26 +00:00
Anna Zaks
4ff9097fcc
[analyzer] Fix a diagnostics bug which lead to a crash on the buildbot.
...
This bug was triggered by r157851. It only happens in the case where we
don't perform optimal diagnostic pruning.
llvm-svn: 157950
2012-06-04 21:03:31 +00:00
Greg Clayton
eac87f87ce
Patch that fixes log messages in SBValue.cpp from Lau Sennels.
...
llvm-svn: 157949
2012-06-04 20:13:23 +00:00
Johnny Chen
3cb41e82cb
Give more explicit error messages when watchpoint creation command (watchpoint set) fails,
...
like number of supported hardware watchpoints reached or the watch size is not allowed.
llvm-svn: 157948
2012-06-04 20:08:23 +00:00
Aaron Ballman
8d4688718b
Fixes some test cases that should have come along with r157943.
...
llvm-svn: 157947
2012-06-04 20:07:46 +00:00
Fariborz Jahanian
22535def43
objective-c: Handle more warning cases for when
...
message receiver is 'weak' property.
// rdar://10225276
llvm-svn: 157946
2012-06-04 19:16:34 +00:00
Alexander Kornienko
8388d24701
Fixed a problem related to resolution of built-in headers in case a path of tool's binary contains sym-links.
...
llvm-svn: 157944
2012-06-04 19:02:59 +00:00
Aaron Ballman
f0b67b6f5c
Removing the lambda extension warning concerning single return statements, as it no longer applies.
...
llvm-svn: 157943
2012-06-04 18:57:41 +00:00
Jakob Stoklund Olesen
5ef0e0b262
Pass context pointers to LiveRangeCalc::reset().
...
Remove the same pointers from all the other LiveRangeCalc functions,
simplifying the interface.
llvm-svn: 157941
2012-06-04 18:21:16 +00:00
Akira Hatanaka
3ee0405231
Add a test case for mips64 unaligned load/store instructions.
...
llvm-svn: 157939
2012-06-04 17:57:06 +00:00
Akira Hatanaka
b964932e70
Rename test/CodeGen/Mips/load-shift-left-right.ll.
...
llvm-svn: 157938
2012-06-04 17:50:36 +00:00
Akira Hatanaka
6734685f21
Fix a bug in MipsTargetLowering::LowerLOAD. A shift-right-logical node is
...
inserted after the shift-left-logical node.
llvm-svn: 157937
2012-06-04 17:46:29 +00:00
Roman Divacky
e3f15c98d1
Implement local-exec TLS on PowerPC.
...
llvm-svn: 157935
2012-06-04 17:36:38 +00:00
Jordan Rose
4214f605f7
[diagtool] Properly order libraries in Makefile for buildbot.
...
llvm-svn: 157934
2012-06-04 17:21:14 +00:00
Jordan Rose
88bf06584b
Remove AST and Parse from Driver's dependencies.
...
llvm-svn: 157933
2012-06-04 16:57:53 +00:00
Jordan Rose
2fe20dca2a
[diagtool] Re-add show-enabled, minimizing the code pulled in from Frontend.
...
Now correctly builds with both GNU make and CMake.
llvm-svn: 157932
2012-06-04 16:57:50 +00:00
Alexey Samsonov
b6e4f3690b
[Sanitizer] Enable lint for sanitizer_common/
...
llvm-svn: 157931
2012-06-04 14:35:09 +00:00
Alexey Samsonov
2c5fc3bb11
Created files sanitizer_linux.cc and sanitizer_mac.cc for platform-specific implementations of common functions. Turned asan_mmap into __sanitizer::internal_mmap.
...
llvm-svn: 157930
2012-06-04 14:27:50 +00:00
Hans Wennborg
245917b536
MIPS TLS: use the model selected by TargetMachine::getTLSModel().
...
This was mostly done already in r156162, but I missed one place.
llvm-svn: 157929
2012-06-04 14:02:08 +00:00
Alexey Samsonov
3b2f9f4c98
Remove file-type tags in .cc files in tsan/ and sanitizer_common/
...
llvm-svn: 157928
2012-06-04 13:55:19 +00:00
Alexey Samsonov
485d3dc363
Remove file-type tags for .cc files in ASan run-time library
...
llvm-svn: 157927
2012-06-04 13:50:10 +00:00
Alexey Samsonov
90f9630c80
[Sanitizer]: move internal_strcmp to sanitizer_common
...
llvm-svn: 157926
2012-06-04 13:27:49 +00:00
Nadav Rotem
b7bb72e4f3
Remove the "-promote-elements" flag. This flag is now enabled by default.
...
llvm-svn: 157925
2012-06-04 11:27:21 +00:00
Alexey Samsonov
4ecc8f43c7
[ASan] Use ASan option symbolize to turn on internal symbolizer (in development)
...
llvm-svn: 157924
2012-06-04 11:20:17 +00:00
Evgeniy Stepanov
ea155f0153
Require -pie when linking with ASan on Android.
...
llvm-svn: 157923
2012-06-04 11:15:05 +00:00
Alexey Samsonov
06f2cd38c1
[Sanitizer] Move internal_strncpy to sanitizer_libc (and make its behavior conforming to manual)
...
llvm-svn: 157922
2012-06-04 10:30:16 +00:00
Hans Wennborg
96fe81069b
Test the '__thread' before 'static' warning.
...
Also fix the '__thread' before 'extern' case.
llvm-svn: 157921
2012-06-04 10:19:34 +00:00
Hans Wennborg
09610f3e09
Better comments for TLS-related X86 MachineOperand flags.
...
llvm-svn: 157920
2012-06-04 09:55:36 +00:00
Alexey Samsonov
c1971ca12f
[Sanitizer_common] fix filenames in comments
...
llvm-svn: 157919
2012-06-04 09:33:06 +00:00
Craig Topper
c6ac4cefcc
Add intrinsic forms for FMA instructions to opcode folding tables.
...
llvm-svn: 157917
2012-06-04 07:46:16 +00:00
Duncan Sands
b8d3d74de8
getAllOnesValue also works for vectors of integers.
...
llvm-svn: 157915
2012-06-04 07:18:12 +00:00