Benjamin Kramer
c7d6a2df38
Provide malloc-free sentinels for the SparseBitVector internals.
...
llvm-svn: 164823
2012-09-28 15:36:41 +00:00
Dmitri Gribenko
91c06da5f1
Replace the use of strncpy() and sprintf() with std::string and LLVM streams.
...
Patch by Martinez, Javier E.
llvm-svn: 164822
2012-09-28 14:15:28 +00:00
Alexey Samsonov
c3f61d8eec
[ASan] Fix unit test headers. Add an option to change substitute asan_test_config.h file
...
llvm-svn: 164821
2012-09-28 12:24:23 +00:00
Alexey Samsonov
2d9899b2ce
[ASan] use llvm-symbolizer (in offline mode) in ASan output tests on Linux
...
llvm-svn: 164819
2012-09-28 11:05:41 +00:00
Benjamin Kramer
255dea4b90
CorrelatedPropagation: BasicBlock::removePredecessor can simplify PHI nodes. If the it's the condition of a SwitchInst, reload it.
...
Fixes PR13972.
llvm-svn: 164818
2012-09-28 10:42:50 +00:00
Benjamin Kramer
5651cbdc13
Make backtraces work again with both the configure and cmake build.
...
llvm-svn: 164817
2012-09-28 10:10:46 +00:00
Evgeniy Stepanov
9792396a06
[asan] Change defaults for Android target.
...
This way building without -DASAN_* in CFLAGS produces working binaries.
llvm-svn: 164816
2012-09-28 10:07:53 +00:00
Benjamin Kramer
ed84360a45
GlobalOpt: non-constexpr bitcasts or GEPs can occur even if the global value is only stored once.
...
Fixes PR13968.
llvm-svn: 164815
2012-09-28 10:01:27 +00:00
Nick Lewycky
156999f8b9
Surprisingly, we missed a trivial case here. Fix that!
...
llvm-svn: 164814
2012-09-28 09:33:53 +00:00
Craig Topper
8ffb55b2ab
Remove a LLVM_DELETED_FUNCTION from destructor to fix -std=c++11 build on gcc 4.7.
...
llvm-svn: 164813
2012-09-28 07:17:01 +00:00
Jason Molenda
f49306a2c6
Recognize the eax/ebp/eip etc version of x86 register
...
names in addition to the rax/rbp/rip register names when
deciding whether a register is volatile or not.
llvm-svn: 164812
2012-09-28 05:46:55 +00:00
Reed Kotler
210ebe93f3
1. Add load/store words from the stack
...
2. As part of this, added assembly format FEXT_RI16_SP_explicit_ins and
moved other lines for FEXT_RI16 formats to be in the right place in the code.
3. Added mayLoad and mayStore assignements for the load/store instructions added and for ones already there that did not have this assignment.
4. Another patch will deal with the problem of load/store byte/halfword to the stack. This is a particular Mips16 problem.
llvm-svn: 164811
2012-09-28 02:26:24 +00:00
Jason Molenda
65c28cb47a
Fix the extra space char being emitted in this message when breakpoints resolve -
...
1 location added to breakpoint 2
llvm-svn: 164810
2012-09-28 01:50:47 +00:00
Howard Hinnant
2d0352cbf8
Two changes: 1) I still didn't have the ABI correct to match the gcc-4.2 std::string under the exception classes. I think the changes to stdexcept.cpp have got that down now. 2) On Apple platforms I'm seeing visibility bugs in applications with respect to type_info's being hidden. This is causing dynamic_cast to malfunction because there are multiple type_info's running around for one type within an application, making dynamic_cast believe that one type is actually multiple types. As a stop gap measure I'm trying to detect this error, print out an error message, but continue with the most likely desired result. This is all under __APPLE__. This behavior can be expanded to other platforms if desired.
...
llvm-svn: 164809
2012-09-28 00:05:34 +00:00
Sean Callanan
21b51062db
Improved the runtime reading to also get data
...
out of the metaclass, so as to enumerate class
methods for an object.
llvm-svn: 164808
2012-09-27 23:47:51 +00:00
Jakob Stoklund Olesen
31af8bf1cc
Remove <def,read-undef> flags from partial redefinitions.
...
The new coalescer can turn a full virtual register definition into a
partial redef by merging another value into an unused vector lane.
Make sure to clear the <read-undef> flag on such defs.
llvm-svn: 164807
2012-09-27 23:31:32 +00:00
Greg Clayton
b5f0feabae
Wrapped up the work I am going to do for now for the "add-dsym" or "target symfile add" command.
...
We can now do:
Specify a path to a debug symbols file:
(lldb) add-dsym <path-to-dsym>
Go and download the dSYM file for the "libunc.dylib" module in your target:
(lldb) add-dsym --shlib libunc.dylib
Go and download the dSYM given a UUID:
(lldb) add-dsym --uuid <UUID>
Go and download the dSYM file for the current frame:
(lldb) add-dsym --frame
llvm-svn: 164806
2012-09-27 22:26:11 +00:00
Micah Villmow
daa1c74da8
Fix more crlf issues.
...
llvm-svn: 164805
2012-09-27 22:14:10 +00:00
Eli Friedman
c681e5f608
Fix a regression from r164656.
...
llvm-svn: 164804
2012-09-27 22:13:33 +00:00
Anna Zaks
6aef455573
[analyzer] Address Jordan's code review for r164790.
...
llvm-svn: 164803
2012-09-27 21:57:17 +00:00
Anna Zaks
a0c8331663
[analyzer] IvarInvalidation: track synthesized ivars and allow escape
...
through property getters.
llvm-svn: 164802
2012-09-27 21:57:14 +00:00
Jason Molenda
47d114ac01
Patch from Dan Malea to get the Bourne shells scripts to run cleanly on Ubuntu.
...
llvm-svn: 164801
2012-09-27 21:26:57 +00:00
Meador Inge
7fbc364ecb
instcombine: Add more test cases for __strncpy_chk simplification
...
llvm-svn: 164800
2012-09-27 21:21:31 +00:00
Meador Inge
213d642840
instcombine: Add more test cases for __strcpy_chk simplification
...
llvm-svn: 164799
2012-09-27 21:21:28 +00:00
Meador Inge
058e29c432
instcombine: Add more test cases for __memmove_chk simplification
...
llvm-svn: 164798
2012-09-27 21:21:25 +00:00
Meador Inge
0d402f06fe
instcombine: Add more test cases for __memcpy_chk simplification
...
llvm-svn: 164797
2012-09-27 21:21:21 +00:00
Meador Inge
6f01da1c99
instcombine: Add more test cases for __memset_chk simplification
...
llvm-svn: 164796
2012-09-27 21:21:18 +00:00
Jakob Stoklund Olesen
8919aa508d
Enable the new coalescer algorithm by default.
...
The new coalescer is better at merging values into unused vector lanes,
improving NEON code.
llvm-svn: 164794
2012-09-27 21:06:02 +00:00
Jakob Stoklund Olesen
4976d0df41
Don't dereference begin() on an empty vector.
...
The fix is obvious and the only test case I have is horrible, so I am
not including it. The problem shows up when self-hosting clang on i386
with -new-coalescer enabled.
llvm-svn: 164793
2012-09-27 21:05:59 +00:00
Sean Callanan
2885a7088d
Fixed some bugs in the runtime reader code. Also
...
added a parser for method signatures in the
Objective-C @encode format.
llvm-svn: 164792
2012-09-27 20:38:15 +00:00
Anna Zaks
dd09c34351
Unbreak cmake build
...
(fixup for r164790)
llvm-svn: 164791
2012-09-27 20:32:46 +00:00
Anna Zaks
461f239331
[analyzer] Add an experimental ObjC direct ivar assignment checker.
...
llvm-svn: 164790
2012-09-27 19:45:15 +00:00
Anna Zaks
454477cd07
Make getDefaultSynthIvarName() a member of ObjCPropertyDecl.
...
llvm-svn: 164789
2012-09-27 19:45:11 +00:00
Anna Zaks
8c0dd36ede
[analyzer] Address Jordan's code review comments for r164716.
...
llvm-svn: 164788
2012-09-27 19:45:08 +00:00
Akira Hatanaka
a9183eda74
MIPS DSP: ABSQ_S.PH instruction sub-class.
...
llvm-svn: 164787
2012-09-27 19:09:21 +00:00
Akira Hatanaka
892b1046c6
MIPS DSP: SHLL.QB instruction sub-class.
...
llvm-svn: 164786
2012-09-27 19:05:08 +00:00
Benjamin Kramer
c2081d1c19
Fix a integer overflow in SimplifyCFG's look up table formation logic.
...
If the width is very large it gets truncated from uint64_t to uint32_t when
passed to TD->fitsInLegalInteger. The truncated value can fit in a register.
This manifested in massive memory usage or crashes (PR13946).
llvm-svn: 164784
2012-09-27 18:29:58 +00:00
Micah Villmow
eb9c0d0ed5
Fix CRLF issues.
...
llvm-svn: 164782
2012-09-27 17:51:02 +00:00
Benjamin Kramer
75ee95fa95
Pass PrintingPolicy by reference, copying it isn't cheap.
...
llvm-svn: 164781
2012-09-27 17:37:30 +00:00
Greg Clayton
6f485f3f77
Ashok Thirumurthi patch to enable the latest and greatest DWARF forms from the DWARF 4 specification.
...
llvm-svn: 164779
2012-09-27 16:48:25 +00:00
Jakob Stoklund Olesen
1d19582a8f
Avoid dereferencing a NULL pointer.
...
Fixes PR13943.
llvm-svn: 164778
2012-09-27 16:34:19 +00:00
Filipe Cabecinhas
ebca38a4c5
Fixed a typo.
...
llvm-svn: 164777
2012-09-27 15:31:38 +00:00
Micah Villmow
7345a35777
Patch for HowToBuildOnARM documentation from Wei-Ren Chen.
...
llvm-svn: 164776
2012-09-27 15:05:49 +00:00
NAKAMURA Takumi
6bbfd1aeca
clang/test/CodeGen/ms-inline-asm.c: It requires x86 codegen. Reported by Joey Gouly.
...
llvm-svn: 164775
2012-09-27 14:55:08 +00:00
Douglas Gregor
07c22b78e5
Following up on r164620, cope with symlinking from an embedded
...
framework location out to a top-level framework. Such frameworks are
not really embedded at all.
llvm-svn: 164774
2012-09-27 14:50:15 +00:00
Evgeniy Stepanov
cb9cf0f907
Add a missing const qualifier.
...
llvm-svn: 164773
2012-09-27 13:21:08 +00:00
Evgeniy Stepanov
f7f616ba66
Quick fix data/bss detection in TSan.
...
The old way breaks when a module's bss is adjacent to the [heap] vm area.
Both ways are not very reliable, though.
llvm-svn: 164772
2012-09-27 13:20:40 +00:00
Benjamin Kramer
9aabaa39d6
Shrink LinkageInfo from 96 bits to 8 bits.
...
llvm-svn: 164771
2012-09-27 12:52:55 +00:00
Sylvestre Ledru
33b5baf189
Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164766
...
llvm-svn: 164769
2012-09-27 10:16:10 +00:00
Sylvestre Ledru
91ce36c986
Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164767
...
llvm-svn: 164768
2012-09-27 10:14:43 +00:00