summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* First step to making an LanguageRuntime Exception breakpoint API.Jim Ingham2012-03-0314-106/+217
| | | | | | <rdar://problem/10196277> llvm-svn: 151965
* [analyzer] do not warn about returning stack-allocated memory when it comes ↵Ted Kremenek2012-03-032-10/+37
| | | | | | from an ancestor stack frame. llvm-svn: 151964
* Factor bitfields of LangOptions out into a base class in order to make themRichard Smith2012-03-031-14/+19
| | | | | | trivially-copyable. 50KiB reduction in clang binary size. llvm-svn: 151963
* added a new formatter for CF(Mutable)BitVectorEnrico Granata2012-03-0311-38/+425
| | | | | | | | fixed a few potential NULL-pointer derefs in ValueObject we have a way to provide docstrings for properties we add to the SWIG layer - a few of these properties have a docstring already, more will come in future commits added a new bunch of properties to SBData to make it more natural and Python-like to access the data they contain llvm-svn: 151962
* Frontend: Default to creating output files using temporary files + rename.Daniel Dunbar2012-03-032-1/+6
| | | | | | | | | - This is a more reliable default, as it behaves better on failure and also ensures that we create *new* files (instead of reusing existing inodes). This is useful for other applications (like lldb) which want to cache inode's to know when a file has been rewritten. llvm-svn: 151961
* Frontend: Don't automatically create missing directories when using ↵Daniel Dunbar2012-03-033-9/+28
| | | | | | | | temporary files with createOutputFile() - This would otherwise happen as a side effect of llvm::sys::fs::unique_file creating parent directories. llvm-svn: 151960
* hash_state: Don't use initialization target during initialization.Daniel Dunbar2012-03-031-3/+2
| | | | llvm-svn: 151959
* Fix RA-dependent test.Jakob Stoklund Olesen2012-03-031-3/+3
| | | | llvm-svn: 151958
* Fix comments for llvm-readobj, remove extraneous headersDavid Meyer2012-03-021-5/+9
| | | | llvm-svn: 151957
* Thread safety analysis: expand set of expressions that can be used to denote ↵DeLesley Hutchins2012-03-022-27/+144
| | | | | | locks. llvm-svn: 151956
* Reinstate r151879, r151880, reverted in r151922, along with a bugfix forRichard Smith2012-03-025-30/+121
| | | | | | | | | scalar emission of DeclRefExprs to const bools: emit scalar bools as i1, not as i8. In addition to the extra unit testing, this has successfully bootstrapped. llvm-svn: 151955
* <rdar://problem/10974749>Greg Clayton2012-03-021-3/+15
| | | | | | Added more cases to deal with new default compiler driver flags that were making builds fail. llvm-svn: 151954
* Added a function to the disassembler that checksSean Callanan2012-03-021-2/+92
| | | | | | | | (from the mnemonic) whether an instruction is a branch. This function's result is exposed through DoesBranch(). llvm-svn: 151953
* Unbreak the CMake builds following the CallGraph change.Anna Zaks2012-03-021-1/+1
| | | | llvm-svn: 151952
* Add a test for the -Wstring-plus-int fixit note.Nico Weber2012-03-021-0/+4
| | | | llvm-svn: 151951
* [analyzer] Rename clang::CallGraph into clang::idx::CallGraph + renameAnna Zaks2012-03-023-22/+27
| | | | | | | | | | | | | the corresponding files to avoid confusion. This is a preparation to adding an AST-based call graph to Analysis. The existing call graph works with indexer entries. We might be able to refactor it to use the AST based graph in the future. (Minimal testing here as the only example that uses the API has been completely broken, does not compile.) llvm-svn: 151950
* Adding support for #pragma include_alias in MS compatibility mode. This ↵Aaron Ballman2012-03-026-0/+219
| | | | | | implements PR 10705. llvm-svn: 151949
* Bumped Xcode project versions for lldb-121 and debugserver-172Greg Clayton2012-03-025-24/+24
| | | | llvm-svn: 151948
* Issue warning when late-parsed attributes have no declaration.DeLesley Hutchins2012-03-023-5/+19
| | | | llvm-svn: 151947
* <rdar://problem/10974749>Greg Clayton2012-03-021-0/+6
| | | | | | Hack our project file to deal with new default compiler driver flags that were making builds fail. llvm-svn: 151946
* Make late-parsed attributes follow the conventions of ordinaryDeLesley Hutchins2012-03-025-32/+94
| | | | | | | GNU attributes to a better extent, by allowing them in more places on a declator. llvm-svn: 151945
* Thread safety analysis: handle CFG blocks which call functions marked as ↵DeLesley Hutchins2012-03-022-0/+21
| | | | | | noreturn. llvm-svn: 151944
* Add -Wstring-plus-int, which warns on "str" + int and int + "str".Nico Weber2012-03-029-8/+123
| | | | | | | | It doesn't warn if the integer is known at compile time and within the bounds of the string. Discussion: http://comments.gmane.org/gmane.comp.compilers.clang.scm/47203 llvm-svn: 151943
* objc: When issue diagnostic about deprecated method, alsoFariborz Jahanian2012-03-024-5/+44
| | | | | | | issue the note if it is because message is sent to a forward class declaration in delayed diagnostic. // rdar://10290322 llvm-svn: 151942
* And remove the control character that somehow found its way into the last ↵Jim Ingham2012-03-021-1/+1
| | | | | | checkin... llvm-svn: 151941
* For Sean: handle the case where you are asked for a 0 byte allocation with 0 ↵Jim Ingham2012-03-021-2/+2
| | | | | | alignment. llvm-svn: 151940
* rdar://problem/10652076Johnny Chen2012-03-023-31/+184
| | | | | | | | | | | | | | | | | | | | | | | Add logic to GDBRemoteRegisterContext class to be able to read/write a "composite" register which has "primordial" registers as its constituents. In particular, Read/WriteRegisterBytes() now delegate to Get/SetPrimordialRegister() helper methods to read/write register contents. Also modify RegisterValue class to be able to parse "register write" string value for the NEON quadword registers which is displayed as a vector of uint8's. Example: (lldb) register write q0 "{0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f 0x10}" (lldb) register read q0 q0 = {0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f 0x10} (lldb) register read --format uint8_t[] s0 s0 = {0x01 0x02 0x03 0x04} (lldb) register read --format uint8_t[] d0 d0 = {0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08} (lldb) register read --format uint8_t[] d1 d1 = {0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f 0x10} llvm-svn: 151939
* [analyzer diagnostics] flush locations *before* popping the current path ↵Ted Kremenek2012-03-022-10/+245
| | | | | | | | when visiting a CallEnter. Fixes <rdar://problem/10967815> llvm-svn: 151938
* Prevent assertions because of zero-sized sections,Sean Callanan2012-03-021-1/+6
| | | | | | | while still ensuring that the sections get remote allocations. llvm-svn: 151936
* Fix an ABI problem with ptrdiff_t and intptr_t on PPC32Hal Finkel2012-03-022-2/+4
| | | | | | | | | | ptrdiff_t on PPC32 on Linux, etc. should be int not long. This does not matter for C, but it does matter for C++ because of name mangling. The preprocessor test has been changed accordingly. llvm-svn: 151935
* Move int<->pointer conversion warnings behind -Wint-conversions.Nico Weber2012-03-024-7/+9
| | | | | | | This is consistent with -Wbool-conversion. Let me know if you prefer a different flag name. llvm-svn: 151934
* Fix indentation.Benjamin Kramer2012-03-021-3/+3
| | | | llvm-svn: 151932
* [Sema] Fix crash-on-invalid-code issue:Argyrios Kyrtzidis2012-03-023-1/+9
| | | | | | | | | | @class I; @implementation I(cat) // crashes here @end rdar://10968158 llvm-svn: 151931
* [analyzer] Bound the size of the functions being inlined + provideAnna Zaks2012-03-028-21/+60
| | | | | | | | | | | command line options for inlining tuning. This adds the option for stack depth bound as well as function size bound. + minor doxygenification llvm-svn: 151930
* Adding a test case for a bug where types CFGregorianDate and CFRange were ↵Enrico Granata2012-03-023-0/+79
| | | | | | improperly uniqued by LLDB such that both where shown as having the same structure contents - The bug itself is fixed in TOT but we want to catch regressions ASAP llvm-svn: 151929
* Removing a spurious print statement leftover from debugging the formatter codeEnrico Granata2012-03-021-1/+0
| | | | llvm-svn: 151928
* PR12094: Set the alignment of memory intrinsic instructions based on theJay Foad2012-03-022-29/+57
| | | | | | types of the pointer arguments. llvm-svn: 151927
* Tidy up. Trailing whitespace.Jim Grosbach2012-03-021-1/+1
| | | | llvm-svn: 151926
* Bumping Xcode project versions for lldb-120 and debugserver-171.Greg Clayton2012-03-025-24/+24
| | | | llvm-svn: 151924
* Change diagnostic test for my last patch.Fariborz Jahanian2012-03-022-4/+4
| | | | | | // rdar://10961370 llvm-svn: 151923
* Revert r151879, r151880, "PR12145: Avoid emitting loads of constexpr ↵Daniel Dunbar2012-03-022-42/+9
| | | | | | | | variables in contexts where there" and "Fix buildbot: make this test less dependent on the value names in the produced IR." They broke bootstrap. llvm-svn: 151922
* autoconf: Set LLVM_CONFIGTIME to a stable value when using --disable-timestamps.Daniel Dunbar2012-03-022-0/+9
| | | | llvm-svn: 151921
* Use tabs instead of spaces.Benjamin Kramer2012-03-021-3/+3
| | | | | | No, really, make doesn't work with spaces. llvm-svn: 151920
* LVI: Recognize the form instcombine canonicalizes range checks into when ↵Benjamin Kramer2012-03-022-4/+59
| | | | | | | | | | forming constant ranges. This could probably be made a lot smarter, but this is a common case and doesn't require LVI to scan a lot of code. With this change CVP can optimize away the "shift == 0" case in Hashing.h that only gets hit when "shift" is in a range not containing 0. llvm-svn: 151919
* Hashing: microoptimize a truncate on 64 bit away. This currently blocks dead ↵Benjamin Kramer2012-03-021-1/+1
| | | | | | | | code eliminating the conditional. The optimizer should handle this eventually, but currently LVI isn't really designed for this kind of stuff. llvm-svn: 151918
* CodeGen: Document and beautify the parts of the BlockGeneratorsTobias Grosser2012-03-021-71/+132
| | | | llvm-svn: 151917
* CodeGen: Pass the scalar maps properlyTobias Grosser2012-03-022-79/+83
| | | | llvm-svn: 151916
* CodeGen: PrettifyTobias Grosser2012-03-021-9/+7
| | | | llvm-svn: 151915
* CodeGen: StyleTobias Grosser2012-03-021-5/+4
| | | | llvm-svn: 151914
* CodeGen: Move domain into the VectorBlockGeneratorTobias Grosser2012-03-021-19/+16
| | | | llvm-svn: 151913
OpenPOWER on IntegriCloud