summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Stop using LiveIntervals::isReMaterializable().Jakob Stoklund Olesen2012-06-052-9/+28
| | | | | | | | | | It is an old function that does a lot more than required by CalcSpillWeights, which was the only remaining caller. The isRematerializable() function never actually sets the isLoad argument, so don't try to compute that. llvm-svn: 157973
* Revert commit r157966Joel Jones2012-06-052-43/+0
| | | | llvm-svn: 157972
* Make sure the module_uuid_ptr is non-NULL before checking whether its ↵Jim Ingham2012-06-051-2/+2
| | | | | | contents match the module's UUID. llvm-svn: 157971
* Only emit debug information for methods that are user defined, there'sEric Christopher2012-06-054-13/+29
| | | | | | | | | not much reason to emit for constructors and destructors that aren't user defined. rdar://11593099 llvm-svn: 157970
* Funnel the old API call SBValue::Watch (bool resolve_location, bool read, ↵Johnny Chen2012-06-051-59/+2
| | | | | | bool write) to the one which takes an SBError. llvm-svn: 157969
* Teach format string checking about compile-time CFString constants.Jordan Rose2012-06-042-22/+41
| | | | | | | | | | | | | 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
* Cannot break the existing API client of SBValue::Watch(bool ↵Johnny Chen2012-06-042-0/+70
| | | | | | | | resolve_location, bool read, bool write). Leave this method in the codebase for a while. llvm-svn: 157967
* This change handles a another case for generating the bic instruction Joel Jones2012-06-042-0/+43
| | | | | | | | | 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
* Cleaned up some stuff in symbolication where we can now lazily get images ↵Greg Clayton2012-06-043-135/+201
| | | | | | | | 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
* rdar://problem/11584012Johnny Chen2012-06-0421-77/+137
| | | | | | | | | | | 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
* Delete dead code.Jakob Stoklund Olesen2012-06-042-12/+0
| | | | llvm-svn: 157963
* Make suggestions for mismatched enum arguments to printf/scanf.Jordan Rose2012-06-043-0/+23
| | | | llvm-svn: 157962
* Teach printf/scanf about enums with fixed underlying types.Jordan Rose2012-06-044-10/+153
| | | | llvm-svn: 157961
* -i option should apply to "-n" as well as "-F".Jim Ingham2012-06-041-2/+2
| | | | llvm-svn: 157960
* PR13022: cope with parenthesized function types in MS name mangling.Richard Smith2012-06-042-1/+6
| | | | llvm-svn: 157959
* When gvn decides to replace an instruction with another, we have to patch theRafael Espindola2012-06-045-2/+506
| | | | | | | | | | | | 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
* Switch LiveIntervals member variable to LLVM naming standards.Jakob Stoklund Olesen2012-06-042-98/+98
| | | | | | No functional change. llvm-svn: 157957
* Fixed handling of Objective-C properties to ensureSean Callanan2012-06-042-8/+74
| | | | | | | | | | | | | 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
* Add a warning for when an array-to-pointer decay is performed on an arrayRichard Smith2012-06-046-9/+117
| | | | | | | | | | | | | | | 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
* [analyzer] Fixup for r157950. Unbreak the bots.Anna Zaks2012-06-041-2/+0
| | | | llvm-svn: 157954
* Document how fixits on errors and warnings must behave.Nico Weber2012-06-041-0/+13
| | | | | | Review and wording tweaks by Richard. llvm-svn: 157953
* Add a testcase for C++11 union support.Eric Christopher2012-06-041-0/+16
| | | | llvm-svn: 157952
* [objcmt] Don't migrate to subscripting syntax if the required methods have notArgyrios Kyrtzidis2012-06-045-11/+239
| | | | | | | | been declared on NSArray/NSDictionary. rdar://11581975 llvm-svn: 157951
* [analyzer] Fix a diagnostics bug which lead to a crash on the buildbot.Anna Zaks2012-06-043-0/+246
| | | | | | | This bug was triggered by r157851. It only happens in the case where we don't perform optimal diagnostic pruning. llvm-svn: 157950
* Patch that fixes log messages in SBValue.cpp from Lau Sennels.Greg Clayton2012-06-041-10/+10
| | | | llvm-svn: 157949
* Give more explicit error messages when watchpoint creation command ↵Johnny Chen2012-06-043-2/+45
| | | | | | | | (watchpoint set) fails, like number of supported hardware watchpoints reached or the watch size is not allowed. llvm-svn: 157948
* Fixes some test cases that should have come along with r157943.Aaron Ballman2012-06-042-35/+32
| | | | llvm-svn: 157947
* objective-c: Handle more warning cases for whenFariborz Jahanian2012-06-042-1/+36
| | | | | | | message receiver is 'weak' property. // rdar://10225276 llvm-svn: 157946
* Fixed a problem related to resolution of built-in headers in case a path of ↵Alexander Kornienko2012-06-042-27/+19
| | | | | | tool's binary contains sym-links. llvm-svn: 157944
* Removing the lambda extension warning concerning single return statements, ↵Aaron Ballman2012-06-043-25/+1
| | | | | | as it no longer applies. llvm-svn: 157943
* Pass context pointers to LiveRangeCalc::reset().Jakob Stoklund Olesen2012-06-043-55/+45
| | | | | | | Remove the same pointers from all the other LiveRangeCalc functions, simplifying the interface. llvm-svn: 157941
* Add a test case for mips64 unaligned load/store instructions.Akira Hatanaka2012-06-041-0/+73
| | | | llvm-svn: 157939
* Rename test/CodeGen/Mips/load-shift-left-right.ll.Akira Hatanaka2012-06-041-0/+0
| | | | llvm-svn: 157938
* Fix a bug in MipsTargetLowering::LowerLOAD. A shift-right-logical node isAkira Hatanaka2012-06-041-1/+2
| | | | | | inserted after the shift-left-logical node. llvm-svn: 157937
* Implement local-exec TLS on PowerPC.Roman Divacky2012-06-049-11/+89
| | | | llvm-svn: 157935
* [diagtool] Properly order libraries in Makefile for buildbot.Jordan Rose2012-06-041-3/+3
| | | | llvm-svn: 157934
* Remove AST and Parse from Driver's dependencies.Jordan Rose2012-06-041-1/+1
| | | | llvm-svn: 157933
* [diagtool] Re-add show-enabled, minimizing the code pulled in from Frontend.Jordan Rose2012-06-047-27/+238
| | | | | | Now correctly builds with both GNU make and CMake. llvm-svn: 157932
* [Sanitizer] Enable lint for sanitizer_common/ Alexey Samsonov2012-06-042-6/+7
| | | | llvm-svn: 157931
* Created files sanitizer_linux.cc and sanitizer_mac.cc for platform-specific ↵Alexey Samsonov2012-06-045-40/+105
| | | | | | implementations of common functions. Turned asan_mmap into __sanitizer::internal_mmap. llvm-svn: 157930
* MIPS TLS: use the model selected by TargetMachine::getTLSModel().Hans Wennborg2012-06-041-3/+4
| | | | | | This was mostly done already in r156162, but I missed one place. llvm-svn: 157929
* Remove file-type tags in .cc files in tsan/ and sanitizer_common/Alexey Samsonov2012-06-0442-42/+42
| | | | llvm-svn: 157928
* Remove file-type tags for .cc files in ASan run-time libraryAlexey Samsonov2012-06-0420-20/+20
| | | | llvm-svn: 157927
* [Sanitizer]: move internal_strcmp to sanitizer_commonAlexey Samsonov2012-06-048-18/+21
| | | | llvm-svn: 157926
* Remove the "-promote-elements" flag. This flag is now enabled by default.Nadav Rotem2012-06-0417-44/+25
| | | | llvm-svn: 157925
* [ASan] Use ASan option symbolize to turn on internal symbolizer (in development)Alexey Samsonov2012-06-042-5/+24
| | | | llvm-svn: 157924
* Require -pie when linking with ASan on Android.Evgeniy Stepanov2012-06-042-0/+4
| | | | llvm-svn: 157923
* [Sanitizer] Move internal_strncpy to sanitizer_libc (and make its behavior ↵Alexey Samsonov2012-06-045-8/+18
| | | | | | conforming to manual) llvm-svn: 157922
* Test the '__thread' before 'static' warning.Hans Wennborg2012-06-042-6/+8
| | | | | | Also fix the '__thread' before 'extern' case. llvm-svn: 157921
* Better comments for TLS-related X86 MachineOperand flags.Hans Wennborg2012-06-041-9/+18
| | | | llvm-svn: 157920
OpenPOWER on IntegriCloud