summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Match the new declaration of clang::ASTContext::getFunctionType introduced ↵Sylvestre Ledru2013-03-101-2/+1
| | | | | | in clang r176726. Fix the build of lldb llvm-svn: 176790
* PR15480: fixed second parameter types of vec_lde, vec_lvebx, vec_lvehx, and ↵Anton Yartsev2013-03-102-28/+28
| | | | | | vec_lvewx according to AltiVec Programming Interface Manual llvm-svn: 176789
* Driver: do not strip file extensions when printing diagnostics.Benjamin Kramer2013-03-101-1/+1
| | | | | | | | | | Before: clang-3: error: no input files After: clang-3.3: error: no input files This means that we'll also print clang.exe on windows, but I don't see a problem with that. llvm-svn: 176788
* Cleanup #includes.Jakub Staszak2013-03-103-5/+5
| | | | llvm-svn: 176787
* Fix indirect byval passing of records in address spaced memory. Allocate ↵Guy Benyei2013-03-102-2/+31
| | | | | | memory on stack, and memcpy the actual value before the call. llvm-svn: 176786
* Remove unneeded #include.Jakub Staszak2013-03-101-1/+0
| | | | llvm-svn: 176785
* Add some constantness in MachinePostDominators.h.Jakub Staszak2013-03-101-7/+8
| | | | llvm-svn: 176784
* Remove unneeded #includes. Use forward declarations instead.Jakub Staszak2013-03-102-5/+9
| | | | llvm-svn: 176783
* Remove unneeded #includes. Use forward declarations instead.Jakub Staszak2013-03-101-3/+5
| | | | llvm-svn: 176782
* www tweaks to embiggen up our near-complete C++11 and C11 support.Richard Smith2013-03-102-6/+8
| | | | llvm-svn: 176781
* When lexing in C11 mode, accept unicode character and string literals, per C11Richard Smith2013-03-095-36/+92
| | | | | | 6.4.4.4/1 and 6.4.5/1. llvm-svn: 176780
* Handle _Pragma on a u8, u, or U string literal per the C11 specification. AlsoRichard Smith2013-03-095-37/+78
| | | | | | | | handle raw string literals here. C++11 doesn't yet specify how they will behave, but discussion on core suggests that we should just strip off everything but the r-char-sequence. llvm-svn: 176779
* Remove an unused member variable from HelpPrinter. Move another member ↵Craig Topper2013-03-091-6/+2
| | | | | | variable to be a local variable in the only method that uses it. llvm-svn: 176778
* Don't glue users to extract_subreg when selecting the llvm.arm.ldrexdLang Hames2013-03-092-6/+17
| | | | | | | | | intrinsic - it can cause impossible-to-schedule subgraphs to be introduced. PR15053. llvm-svn: 176777
* Remove unneeded cast.Jakub Staszak2013-03-091-3/+3
| | | | llvm-svn: 176776
* Remove a source of nondeterminism from the LoopVectorizer.Benjamin Kramer2013-03-091-1/+1
| | | | | | | This made us emit runtime checks in a random order. Hopefully bootstrap miscompares will go away now. llvm-svn: 176775
* Remove unused diagnostic.Benjamin Kramer2013-03-091-2/+0
| | | | llvm-svn: 176774
* Fix test case.Benjamin Kramer2013-03-091-2/+2
| | | | llvm-svn: 176773
* Test case hygiene.Benjamin Kramer2013-03-0918-51/+50
| | | | llvm-svn: 176772
* Remove unneeded const_cast.Jakub Staszak2013-03-091-5/+5
| | | | llvm-svn: 176771
* Use forward declaration instead of #include.Jakub Staszak2013-03-091-1/+1
| | | | llvm-svn: 176770
* LoopVectorizer: Ignore all dbg intrinisicArnold Schwaighofer2013-03-091-6/+6
| | | | | | Ignore all DbgIntriniscInfo instructions instead of just DbgValueInst. llvm-svn: 176769
* LoopVectorizer: Ignore dbg.value instructionsArnold Schwaighofer2013-03-092-2/+81
| | | | | | | | | We want vectorization to happen at -g. Ignore calls to the dbg.value intrinsic and don't transfer them to the vectorized code. radar://13378964 llvm-svn: 176768
* Make helper function static.Benjamin Kramer2013-03-091-2/+2
| | | | llvm-svn: 176767
* TLI: Microoptimize calls to strlen+memcmp to strncmp.Benjamin Kramer2013-03-091-2/+24
| | | | | | | | The strlen+memcmp was hidden in a call to StringRef::operator==. We check if there are any null bytes in the string upfront so we can simplify the comparison Small speedup when compiling code with many function calls. llvm-svn: 176766
* Simplify code. No functionality change.Jakub Staszak2013-03-091-2/+2
| | | | llvm-svn: 176765
* Use the correct index variable. This is the meat of what was supposed to be inNick Lewycky2013-03-091-1/+1
| | | | | | r176751. Also, learn a lesson about applying patches by hand/eyeball. llvm-svn: 176764
* Commit the right files for r176762. Sigh.Nick Lewycky2013-03-091-3/+3
| | | | llvm-svn: 176763
* We need a shndx if the number of sections breaks SHN_LORESERVE. This conditionNick Lewycky2013-03-092-1/+65282
| | | | | | for choosing to emit a shndx was simply testing the wrong variable. llvm-svn: 176762
* Remove use of the ARMDisassembler framework fromJason Molenda2013-03-092-1427/+0
| | | | | | | | DNBArchImplARM. This framework is no longer around; all armv7 devices support using hardware breakpoints to instruction single step. llvm-svn: 176761
* Also remove actual link against the ARMDisassembler framework fromJason Molenda2013-03-091-8/+0
| | | | | | debugserver's build settings. llvm-svn: 176760
* We don't need to specify the VALID_ARCHS in the xcode project file.Jason Molenda2013-03-092-12/+0
| | | | | | | Also, don't build debugserver with -DUSE_ARM_DISASSEMBLER_FRAMEWORK - that framework isn't around at this point. llvm-svn: 176759
* Adding -final-syntax-check to cpp11-migrate user docsEdwin Vane2013-03-091-4/+11
| | | | llvm-svn: 176758
* Splitting cpp11-migrate transform docs into sub-pagesEdwin Vane2013-03-094-171/+178
| | | | | | | Each transform belongs in its own sub-page now. Minor refactoring to reflect new heading levels. llvm-svn: 176757
* [analyzer] Make Suppress IDC checker aware that it might not start from the ↵Anna Zaks2013-03-093-19/+80
| | | | | | | | | | | | | | | | | | | | same node it was registered at The visitor used to assume that the value it’s tracking is null in the first node it examines. This is not true. If we are registering the Suppress Inlined Defensive checks visitor while traversing in another visitor (such as FindlastStoreVisitor). When we restart with the IDC visitor, the invariance of the visitor does not hold since the symbol we are tracking no longer exists at that point. I had to pass the ErrorNode when creating the IDC visitor, because, in some cases, node N is neither the error node nor will be visible along the path (we had not finalized the path at that point and are dealing with ExplodedGraph.) We should revisit the other visitors which might not be aware that they might get nodes, which are later in path than the trigger point. This suppresses a number of inline defensive checks in JavaScriptCore. llvm-svn: 176756
* [analyzer] Rename AttrNonNullChecker -> NonNullParamCheckerAnna Zaks2013-03-095-15/+18
| | | | llvm-svn: 176755
* [analyzer] Add test case for reference to null pointer param checkAnna Zaks2013-03-091-0/+12
| | | | | | This tests that we track the original Expr if getDerefExpr fails. llvm-svn: 176754
* Remove my print statements I was using for debugging.Greg Clayton2013-03-091-9/+0
| | | | llvm-svn: 176753
* <rdar://problem/13384282> Greg Clayton2013-03-091-17/+62
| | | | | | | | As much as I hate to leave this hacky code in that adds some d and q registers to ARM registers, I must leave it in. The code is now fixed to not just assume ANY arm target will have registers in a certain order. We now verify the common regs are the same name and byte size before adding the d and q regs. llvm-svn: 176752
* Fix bug introduced in r176616 when making function identifier numbers stable.Nick Lewycky2013-03-091-5/+3
| | | | | | Count the subprograms, not the compile units. llvm-svn: 176751
* Made LLDB work with the latest Clang. Also fixedSean Callanan2013-03-091-4/+3
| | | | | | | an assertion due to non-implicit Objective-C methods without source locations. llvm-svn: 176750
* [Driver][GNU] Accept and ignore more options.Michael J. Spencer2013-03-091-0/+4
| | | | llvm-svn: 176749
* Fix (possible) MSVC miscompile in debug mode.Michael J. Spencer2013-03-091-1/+2
| | | | llvm-svn: 176748
* [Writer][ELF] Use correct data types for sizes. Fixes integer overflow bug.Michael J. Spencer2013-03-091-3/+3
| | | | | | This only happens when the section header count is > 1024. llvm-svn: 176747
* Don't emit the extra checksum into the .gcda file if the user hasn't asked for Nick Lewycky2013-03-091-3/+7
| | | | | | | | it. Fortunately, versions of gcov that predate the extra checksum also ignore any extra data, so this isn't a problem. This matches the API change made in r176745. llvm-svn: 176746
* Don't emit the extra checksum into the .gcda file if the user hasn't asked forNick Lewycky2013-03-091-4/+6
| | | | | | | | it. Fortunately, versions of gcov that predate the extra checksum also ignore any extra data, so this isn't a problem. There will be a matching commit in compiler-rt. llvm-svn: 176745
* [analyzer] Be more consistent about Objective-C methods that free memory.Jordan Rose2013-03-093-69/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, MallocChecker's pointer escape check and its post-call state update for Objective-C method calls had a fair amount duplicated logic and not-entirely-consistent checks. This commit restructures all this to be more consistent and possibly allow us to be more aggressive in warning about double-frees. New policy (applies to system header methods only): (1) If this is a method we know about, model it as taking/holding ownership of the passed-in buffer. (1a) ...unless there's a "freeWhenDone:" parameter with a zero (NO) value. (2) If there's a "freeWhenDone:" parameter (but it's not a method we know about), treat the buffer as escaping if the value is non-zero (YES) and non-escaping if it's zero (NO). (3) If the first selector piece ends with "NoCopy" (but it's not a method we know about and there's no "freeWhenDone:" parameter), treat the buffer as escaping. The reason that (2) and (3) don't explicitly model the ownership transfer is because we can't be sure that they will actually free the memory using free(), and we wouldn't want to emit a spurious "mismatched allocator" warning (coming in Anton's upcoming patch). In the future, we may have an idea of a "generic deallocation", i.e. we assume that the deallocator is correct but still continue tracking the region so that we can warn about double-frees. Patch by Anton Yartsev, with modifications from me. llvm-svn: 176744
* Adjust the special non-C++ enum block return type inferenceJohn McCall2013-03-092-90/+171
| | | | | | | | | | | | | | | so that it looks through certain syntactic forms and applies even if normal inference would have succeeded. There is potential for source incompatibility from this change, but overall we feel that it produces a much cleaner and more defensible result, and the block compatibility rules should curb a lot of the potential for annoyance. rdar://13200889 llvm-svn: 176743
* Add TagDecl::hasNameForLinkage(), which is true if the tagJohn McCall2013-03-097-9/+26
| | | | | | is non-anonymous or is defined in a typedef of itself. llvm-svn: 176742
* Fix a reversed test for "for_expression" in creating C++ exception breakpoints.Jim Ingham2013-03-092-10/+18
| | | | | | Add a missing "break" in processing the -h option to "breakpoint set". llvm-svn: 176741
OpenPOWER on IntegriCloud