summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move test that depends on the x86 target into a target-specific directory.Benjamin Kramer2013-01-161-0/+0
| | | | | | Should fix the arm buildbot (which only builds the arm target). llvm-svn: 172611
* ASan: wrap mapping scale and offset in a struct and make it a member of ASan ↵Alexey Samsonov2013-01-162-51/+119
| | | | | | passes. Add test for non-default mapping scale and offset. No functionality change llvm-svn: 172610
* Remove triple from this test, it makes it fail when X86 TTI is missing.Benjamin Kramer2013-01-161-4/+1
| | | | | | Without a triple opt falls back to NoTTI which comes closer to LSR's pre-TTI behavior. llvm-svn: 172609
* Use standard llvm Debug.h support for debugging output.Manuel Klimek2013-01-161-17/+16
| | | | | | | | Leave a quick "// Uncomment this." hint to enable the debug output in tests. FIXME: figure out whether we want to enable debug command line handling for all tests. llvm-svn: 172608
* Clang Format: A couple of tests for the trailing stuff caseAlexander Kornienko2013-01-161-0/+6
| | | | llvm-svn: 172607
* Clang Format: Handle missing semicolonAlexander Kornienko2013-01-162-3/+24
| | | | llvm-svn: 172606
* Fix uninitialized bool flag access in SanitizerArgs parserAlexey Samsonov2013-01-162-2/+5
| | | | llvm-svn: 172605
* Calculate the total length of a line up to each token up front.Daniel Jasper2013-01-162-57/+34
| | | | | | | | | | This makes the tedious fitsIntoLimit() method unnecessary and I can replace one hack (constructor initializers) by a slightly better hack. Furthermore, this will enable calculating whether a certain part of a line fits into the limit for future modifications. llvm-svn: 172604
* [asan] asan_allocator2: fix the memalign handling (clear the first word of ↵Kostya Serebryany2013-01-161-0/+2
| | | | | | allocated chunk in case there is an old memalign magic) llvm-svn: 172603
* Change the datastructure for UnwrappedLines.Daniel Jasper2013-01-163-62/+43
| | | | | | | | | | | | | | It was quite convoluted leading to us accidentally introducing O(N^2) complexity while copying from UnwrappedLine to AnnotatedLine. We might still want to improve the datastructure in AnnotatedLine (most importantly not put them in a vector where they need to be copied on vector resizing but that will be done as a follow-up. This fixes most of the regression in llvm.org/PR14959. No formatting changes intended. llvm-svn: 172602
* Never merge < and ::, as it produces different tokens.Daniel Jasper2013-01-162-4/+8
| | | | | | Before: vector<::Type> t; After: vector< ::Type> t; llvm-svn: 172601
* Remove errors were if statements were incorrectly put on a single line.Daniel Jasper2013-01-162-1/+18
| | | | | | | Before: if (a) // This comment confused clang-format f(); After: if (a) // No more confusion f(); llvm-svn: 172600
* [ObjCARC] Turn off ignoring unwind edges in ObjCARC when ↵Michael Gottesman2013-01-161-33/+0
| | | | | | | | | | | | | -fno-objc-arc-exception is enabled due to it's affect on correctness. Specifically according to the semantics of ARC -fno-objc-arc-exception simply states that it is expected that the unwind path out of a call *MAY* not release objects. Thus we can have the situation where a release gets moved into a catch block which we ignore when we remove a retain/release pair resulting in (even though we assume the program is exiting anyways) the cleanup code path potentially blowing up before program exit. llvm-svn: 172599
* clang/test/Driver/darwin-sdkroot.c: Suppress this on msys bash, to introduce ↵NAKAMURA Takumi2013-01-162-0/+7
| | | | | | | | the feature "shell-preserves-root". MSYS transforms '/' to 'X:/mingwroot/'. llvm-svn: 172598
* [analyzer] Add an annotation to allow suppression of direct ivarAnna Zaks2013-01-162-2/+24
| | | | | | assignment llvm-svn: 172597
* [analyzer] Fix warning typo.Anna Zaks2013-01-162-6/+6
| | | | llvm-svn: 172596
* [analyzer] Refactor: parameter rename.Anna Zaks2013-01-163-5/+5
| | | | llvm-svn: 172595
* reverting 172579Jack Carter2013-01-167-44/+2
| | | | llvm-svn: 172594
* SDKROOT should only be unset/cleared for ARM builds. The first fix by Bob ↵Greg Clayton2013-01-161-5/+14
| | | | | | Wilson removed it for ARM for both configure and make, but only unset it for desktop configure, not for the make. My next fix unset/cleared it all the time. This fix only unset/clears it for ARM builds. llvm-svn: 172593
* Add -fmodules-autolink/-fno-modules-autolink (defaults to on) so thatDouglas Gregor2013-01-167-3/+31
| | | | | | users can explicitly enable/disable modules autolinking. llvm-svn: 172592
* Collect both normal and static data members of a class in sourceEric Christopher2013-01-165-111/+178
| | | | | | | | | | order. Describe static data members to metadata using new interfaces. Part of PR14471. Patch by Paul Robinson! llvm-svn: 172591
* Define metadata interfaces for describing a static data memberEric Christopher2013-01-166-49/+162
| | | | | | | | | | | of a class. Emit static data member declarations and definitions through correctly. Part of PR14471. Patch by Paul Robinson! llvm-svn: 172590
* Add a test for static member debug information.Eric Christopher2013-01-161-0/+35
| | | | | | | | Part of PR14471. Patch by Paul Robinson. llvm-svn: 172589
* Documentation: fix typoDmitri Gribenko2013-01-161-1/+1
| | | | llvm-svn: 172588
* Document the redeclaration and overriding restrictions on theDouglas Gregor2013-01-161-1/+28
| | | | | | availability attribute. llvm-svn: 172587
* One can have an unavailable method overridden by an available method,Douglas Gregor2013-01-162-5/+5
| | | | | | | but not vice-versa. Fix bug introduced in r172567 and noticed by Jordan, thanks! llvm-svn: 172586
* Apply adjustment to function- and array-typed non-type templateDouglas Gregor2013-01-162-0/+28
| | | | | | | parameters (per C++ [temp.param]p8) when computing the type of a reference to a non-type template parameter. Fixes <rdar://problem/13000548>. llvm-svn: 172585
* Use the ExtensionDirectiveHandler type in other places where it makes sense.Eli Bendersky2013-01-165-18/+20
| | | | | | | Since we already have this type it's a shame to keep dragging a pair of object and method around explicitly. llvm-svn: 172584
* <rdar://problem/13019628>Han Ming Ong2013-01-166-12/+12
| | | | | | Prevent profiling from working on older debugserver. Just a simple renaming since the caller is prepared to handle the ‘unimplemented’ answer. llvm-svn: 172583
* Fix clang builds that were broken due to SDKROOT changes of you have an ↵Greg Clayton2013-01-161-3/+3
| | | | | | internal OS build. llvm-svn: 172582
* Use --enable-werrorDavid Greene2013-01-161-3/+3
| | | | | | | Use --enable-werror during configure time rather than --with-extra-options. This is cleaner and easier to read. llvm-svn: 172581
* Improve r172577 by using the correct type when declaring constantsDmitri Gribenko2013-01-161-9/+5
| | | | llvm-svn: 172580
* Akira,Jack Carter2013-01-167-2/+44
| | | | | | | | | | | | Hope you are feeling better. The Mips RDHWR (Read Hardware Register) instruction was not tested for assembler or dissassembler consumption. This patch adds that functionality. Contributer: Vladimir Medic llvm-svn: 172579
* Split address information for DWARF5 split dwarf proposal. This involvesEric Christopher2013-01-1513-28/+204
| | | | | | | | | | | | | | | using the DW_FORM_GNU_addr_index and a separate .debug_addr section which stays in the executable and is fully linked. Sneak in two other small changes: a) Print out the debug_str_offsets.dwo section. b) Change form we're expecting the entries in the debug_str_offsets.dwo section to take from ULEB128 to U32. Add tests for all of this in the fission-cu.ll test. llvm-svn: 172578
* Avoid Enum Compare WarningsDavid Greene2013-01-151-2/+4
| | | | | | | Avoid a compiler warning about comparing disjoint enums but casting them to int first. llvm-svn: 172577
* Teach InstCombine to optimize extract of a value from a vector add operation ↵Nadav Rotem2013-01-152-0/+19
| | | | | | with a constant zero. llvm-svn: 172576
* Fixes to the code I just committed to reflectSean Callanan2013-01-151-0/+3
| | | | | | | that we now also have to ignore breakpoints when running the expression to collect isas. llvm-svn: 172575
* Modified the Objective-C runtime to fetch Objective-CSean Callanan2013-01-152-8/+364
| | | | | | | | | | | | | | | | | | | | isas and corresponding names from the underlying process in a manner much quicker than the current approach. The current approach accesses memory in the underlying process with a random-access pattern as it walks across the data structures associated with each isa. This involves a great deal of back-and-forth with debugserver, resulting in performance problems, especially with iOS targets. The new approach attempts to run an expression in the target that collects the isas and names into two large buffers, which LLDB then collects in one shot. <rdar://problem/12914539> llvm-svn: 172574
* ClangExpressionVariable previously was not capable ofSean Callanan2013-01-153-104/+178
| | | | | | | | | | | | | | | | handling multiple clients. However, occasionally an expression must be run in the service of another expression, and in this case two parsers need to access the same list of persistent variables. To allow this, persistent variables now provide state for multiple parsers, and parsers must allocate, access, and deallocate this state by providing their own ID (at the moment, simply the value of the "this" pointer). <rdar://problem/12914539> llvm-svn: 172573
* Optimize the memory usage of MC bundling, by creating a new type of fragmentEli Bendersky2013-01-153-20/+135
| | | | | | | | | | | | | | | | | into which we can emit single instructions without fixups (which is most instructions). This is an optimization required because MCDataFragment is prety large (240 bytes on x64), with no change in functionality. For large programs, this reduces memory usage overhead required for bundling by 40%. To make the code as palatable as possible, the MCEncodedFragment interface was further fragmented (no pun intended) and MCEncodedFragmentWithFixups is used as the interface to work against when the user expects fixups. MCDataFragment and MCRelaxableFragment implement this interface, while the new MCCompactEncodedInstFragment implements MCEncodeFragment. llvm-svn: 172572
* Fix signed/unsigned CompareDavid Greene2013-01-151-1/+2
| | | | | | Do some casting to avoid a signed/unsigned compare. llvm-svn: 172571
* Avoid unsigned Compare to intDavid Greene2013-01-151-1/+1
| | | | | | Cast arithmetic results to avoid comparison of an unsigned to an int. llvm-svn: 172570
* [ms-inline asm] Address the FIXME in AsmParser.cpp.Chad Rosier2013-01-152-8/+10
| | | | | | | | | | // FIXME: Constraints are hard coded to 'm', but we need an 'r' // constraint for addressof. This needs to be cleaned up! Test cases are already in place. Specifically, clang/test/CodeGen/ms-inline-asm.c t15(), t16(), and t24(). llvm-svn: 172569
* Refactor generic Asm directive parsing.Eli Bendersky2013-01-151-790/+802
| | | | | | | | | | | | | | | | | | After discussing the refactoring with Jim and Daniel, the following changes were made: * All generic directive parsing is now done by AsmParser itself. The previous division between it and GenericAsmParser did not have clear boundaries and just produced unnatural code of GenericAsmParser juggling the internals of AsmParser through an interface. The division of responsibilities is now clear: target-specific directives, other extensions (used by platform-specific parseres), and generic directives. * Priority for directive parsing was reshuffled to ask extensions first and check the generic directives later. No change in functionality. llvm-svn: 172568
* When checking availability attributes for consistency between anDouglas Gregor2013-01-156-32/+129
| | | | | | | | overriding and overridden method, allow the overridden method to have a narrower contract (introduced earlier, deprecated/obsoleted later) than the overriding method. Fixes <rdar://problem/12992023>. llvm-svn: 172567
* <rdar://problem/13011717> Greg Clayton2013-01-151-1/+1
| | | | | | Fixed a compilation error where NULL was being assigned to a uint. llvm-svn: 172566
* Fix CastingDavid Greene2013-01-151-6/+11
| | | | | | Use const_cast<> to avoid a cast-away-const error. llvm-svn: 172565
* Fix CastingDavid Greene2013-01-151-2/+2
| | | | | | Use const_cast<> to avoid a cast-away-const error. llvm-svn: 172564
* Fix CastingDavid Greene2013-01-151-1/+1
| | | | | | Use const_cast<> to avoid a cast-away-const error. llvm-svn: 172563
* Fix CastingDavid Greene2013-01-151-1/+2
| | | | | | Use const_cast<> to avoid a cast-away-const error. llvm-svn: 172562
OpenPOWER on IntegriCloud