summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [elf2] Pass BSSSec to the relocation handling code differently. Don't store ↵Michael J. Spencer2015-09-236-11/+21
| | | | | | it in the symbol. llvm-svn: 248393
* [Lex] A source-file new-line in a raw string literal results in a new-lineDavid Majnemer2015-09-232-4/+34
| | | | | | | | | Our string literal parser copied any source-file new-line characters into the execution string-literal. This is incorrect if the source-file new-line character was a \r\n sequence because new-line characters are merely \n. llvm-svn: 248392
* [Sema] Don't create an invalid source range for overlong initializer lists.Benjamin Kramer2015-09-232-2/+8
| | | | | | | | | We took both source locations from the end of the initializer list what the code below doesn't expect. This can lead to a crash when rendering the diagnostic (PR24816). Assert that we have more than one element in a scalar initializer with too many elements. llvm-svn: 248391
* [Inline] Use AssumptionCache from the right FunctionVedant Kumar2015-09-232-1/+32
| | | | | | | | | | | | | | | This changes the behavior of AddAligntmentAssumptions to match its comment. I.e, prove the asserted alignment in the context of the caller, not the callee. Thanks to Mehdi Amini for seeing the issue here! Also to Artur Pilipenko who also saw a fix for the issue. rdar://22521387 Differential Revision: http://reviews.llvm.org/D12997 llvm-svn: 248390
* [ELF2] - added ignored command line options for compatibility.Davide Italiano2015-09-231-0/+16
| | | | | | | | Patch by George Grimar. Differential Revision: http://reviews.llvm.org/D13097 llvm-svn: 248389
* Fix CodeGen/WebAssembly/global.ll test under ASAN.Alexander Kornienko2015-09-231-1/+1
| | | | llvm-svn: 248388
* [DeadArgElim] Split the invoke successor edgeDavid Majnemer2015-09-232-5/+29
| | | | | | | | | | | | | | | | | | | Invoking a function which returns an aggregate can sometimes be transformed to return a scalar value. However, this means that we need to create an insertvalue instruction(s) to recreate the correct aggregate type. We achieved this by inserting an insertvalue instruction at the invoke's normal successor. However, this is not feasible if the normal successor uses the invoke's return value inside a PHI node. Instead, split the edge between the invoke and the unwind successor and create the insertvalue instruction in the new basic block. The new basic block's successor will be the old invoke successor which leaves us with IR which is well behaved. This fixes PR24906. llvm-svn: 248387
* [CMake] [builtins] Only include the atomic builtins if(APPLE).Chris Bieneman2015-09-231-6/+11
| | | | | | There are lingering issues building the atomic builtins with various versions of gcc. To unblock people we can only include them on Apple platforms where they are more tested. llvm-svn: 248386
* Code cleanup based on post-commit review from Aaron Ballman.Chris Bieneman2015-09-232-2/+0
| | | | llvm-svn: 248385
* Cleaned up results formatter options hand-off.Todd Fiala2015-09-234-60/+111
| | | | | | | | | | | | | | | | | | | | | | | * --results-formatter-options renamed to --results-formatter-option, with short version of -O * Multiple --results-formatter-option=OPTION can be specified. The comma-separating mechanism has been removed. * XunitFormatter options modified: -n and -r are now short forms of --ignore-skip-name and --ignore-skip-reason. Those long option names were tweaked lightly. They also can be specified multiple times on the command line. The comma-separating, multiple-pattern- per-option mechanism has been removed. One can now specify: dotest.py --results-file stdout -O-ndsym -O-nlldb-mi for example, to ignore reporting skips for dsym-related or lldb-mi-related tests in the xUnit report. llvm-svn: 248384
* [CMake] [Darwin] Bug 21562 - Add a CMake equivalent for ↵Chris Bieneman2015-09-238-51/+401
| | | | | | | | | | | | | | | | | make/platform/clang_darwin.mk in compiler_rt Summary: Building the builtins on Darwin platforms is a bit complicated. This is a first-pass implementation of the functionality from clang_darwin.mk into CMake. When building the builtins on Darwin we have layers of blacklists that we apply based on platform, architecture, and minimum supported OS version. Reviewers: bogner, filcab, bob.wilson, samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13059 llvm-svn: 248383
* Print more information about undefined symbols.Rafael Espindola2015-09-232-2/+23
| | | | llvm-svn: 248382
* Don't complain about symbols showing up in multible shared libraries.Rafael Espindola2015-09-232-1/+5
| | | | llvm-svn: 248381
* Print more information about duplicated symbols.Rafael Espindola2015-09-233-3/+28
| | | | llvm-svn: 248380
* Refactor library decision for -fopenmp support from Darwin into aJoerg Sonnenberger2015-09-231-17/+23
| | | | | | function for sharing with other platforms. llvm-svn: 248379
* Add -fplugin=name.so option to the driverJohn Brawn2015-09-233-0/+16
| | | | | | | | This translates to -load name.so in the cc1 command. We can't name the driver option -load, as that means "link against oad", so instead we follow GCC's lead and name the option -fplugin. llvm-svn: 248378
* [AArch64] Refactor pre- and post-index merge fuctions into a single ↵Chad Rosier2015-09-231-59/+16
| | | | | | function. NFC. llvm-svn: 248377
* [DeclPrinter] Don't crash when printing a using decl with a special nameBenjamin Kramer2015-09-232-1/+9
| | | | | | Fixes PR24872. llvm-svn: 248376
* Fix bad iterator access.Daniel Jasper2015-09-231-1/+2
| | | | llvm-svn: 248375
* [DeadStoreElimination] Remove dead zero store to calloc initialized memoryIgor Laevsky2015-09-232-33/+123
| | | | | | | | This change allows dead store elimination to remove zero and null stores into memory freshly allocated with calloc-like function. Differential Revision: http://reviews.llvm.org/D13021 llvm-svn: 248374
* Fix xcode build after r248366Tamas Berghammer2015-09-231-0/+6
| | | | llvm-svn: 248373
* [dsymutil] Plug a memory leak.Benjamin Kramer2015-09-231-2/+2
| | | | llvm-svn: 248372
* Fix race condition during process detachPavel Labath2015-09-233-42/+35
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: The following situation occured in TestAttachResume: The inferior was stoped at a breakpoint and we did a continue, immediately followed by a detach. Since there was a trap instruction under the IP, the continue did a step-over-breakpoint before resuming the inferior for real. In some cases, the detach command was executed between these two events (after the step-over stop, but before continue). Here, public state was running, but private state was stopped. This caused a problem because HaltForDestroyOrDetach was checking the public state to see whether it needs to stop the process (call Halt()), but Halt() was checking the private state and concluded that there is nothing for it to do. Solution: Instead of Halt() call SendAsyncInterrupt(), which will then cause Halt() to be executed in the context of the private state thread. I also rename HaltForDestroyOrDetach to reflect it does not call halt directly. Reviewers: jingham, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13056 llvm-svn: 248371
* [ARM] Fix crash "-target arm -mcpu=generic", without "-march="Vladimir Sukharev2015-09-235-12/+35
| | | | | | | | | | | | | | | | An assertion hit has been fixed for cmdlines like $ clang --target=arm-linux-gnueabi -mcpu=generic hello.c Related to: http://reviews.llvm.org/rL245445 Reviewers: rengolin Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13013 llvm-svn: 248370
* [ARM] Add option to force fast-iselOliver Stannard2015-09-231-0/+10
| | | | | | | | | | | | The ARM backend has some logic that only allows the fast-isel to be enabled for subtargets where it is known to be stable. This adds a backend option to override this and force the fast-isel to be used for any target, to allow it to be tested. This is an ARM-specific option, because no other backend disables the fast-isel on a per-subtarget basis. llvm-svn: 248369
* [X86][SSE] Replace 128-bit SSE41 PMOVSX intrinsics with native IRSimon Pilgrim2015-09-239-201/+155
| | | | | | | | | | This patches removes the x86.sse41.pmovsx* intrinsics, provides a suitable upgrade path and updates relevant tests to sign extend a subvector instead. LLVM counterpart to D12835 Differential Revision: http://reviews.llvm.org/D13002 llvm-svn: 248368
* clang-format: Add initial #include sorting capabilities.Daniel Jasper2015-09-2311-36/+509
| | | | | | | | | To implement this nicely, add a function that merges two sets of replacements that are meant to be done in sequence. This functionality will also be useful for other applications, e.g. formatting the result of clang-tidy fixes. llvm-svn: 248367
* Testcase and fix for bug 24074Ravitheja Addepally2015-09-2322-74/+749
| | | | | | | | | | | | | | | | Summary: In bug 24074, the type information is not shown correctly. This commit includes the following - -> Changes for displaying correct type based on current lexical scope for the command "image lookup -t" -> The corresponding testcase. Reviewers: jingham, ovyalov, spyffe, richard.mitton, clayborg Differential Revision: http://reviews.llvm.org/D12404 llvm-svn: 248366
* Fix covered-switch-default warning in FormatManager.Bruce Mitchener2015-09-231-1/+0
| | | | | | | | | | | | | | | | Summary: The default case doesn't need to be here as the switch covers all possible values. If there's a new "lazy bool" value added in the future, the compiler would start to warn about the new case not being covered. Reviewers: granata.enrico, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13084 llvm-svn: 248365
* Fix indentation in ExpressionParser.h.Bruce Mitchener2015-09-231-4/+4
| | | | llvm-svn: 248364
* Allow CompilerType to express a vote on whether oneliner printing should happenEnrico Granata2015-09-235-0/+37
| | | | llvm-svn: 248363
* [SCEV] Introduce ScalarEvolution::getOne and getZero.Sanjoy Das2015-09-2311-57/+55
| | | | | | | | | | | | | | | | | | Summary: It is fairly common to call SE->getConstant(Ty, 0) or SE->getConstant(Ty, 1); this change makes such uses a little bit briefer. I've refactored the call sites I could find easily to use getZero / getOne. Reviewers: hfinkel, majnemer, reames Subscribers: sanjoy, llvm-commits Differential Revision: http://reviews.llvm.org/D12947 llvm-svn: 248362
* [ELF2] Add ASCII representation of the string table to test.Davide Italiano2015-09-231-3/+3
| | | | | | Requested by: rafael llvm-svn: 248361
* [ELF2] Constify getStrTabSec().Davide Italiano2015-09-231-1/+1
| | | | llvm-svn: 248360
* Add {TypeSystem|CompilerType}::GetTypeForFormatters()Enrico Granata2015-09-237-1/+30
| | | | | | | | | Different type system may have different notions of attributes of a type that do not matter for data formatters matching purposes For instance, in the case of clang types, we remove some qualifiers (e.g. "volatile") as it doesn't make much sense to differentiate volatile T from T in the data formatters This new API allows each type system to generate, if needed, a type that does not have those unwanted attributes that the data formatters can then consume to generate matches llvm-svn: 248359
* Revert "Android support for SafeStack."Evgeniy Stepanov2015-09-238-152/+41
| | | | | | | test/Transforms/SafeStack/abi.ll breaks when target is not supported; needs refactoring. llvm-svn: 248358
* Android support for SafeStack.Evgeniy Stepanov2015-09-238-41/+152
| | | | | | | | | | | | | | Add two new ways of accessing the unsafe stack pointer: * At a fixed offset from the thread TLS base. This is very similar to StackProtector cookies, but we plan to extend it to other backends (ARM in particular) soon. Bionic-side implementation here: https://android-review.googlesource.com/170988. * Via a function call, as a fallback for platforms that provide neither a fixed TLS slot, nor a reasonable TLS implementation (i.e. not emutls). llvm-svn: 248357
* Add a test case for the fix of profile update issue when lowering switch ↵Cong Hou2015-09-231-0/+52
| | | | | | statement. llvm-svn: 248356
* Make ms-intrin.cpp test require the x86 target.Nico Weber2015-09-231-0/+2
| | | | llvm-svn: 248355
* Fixed an issue on updating profile data when lowering switch statement.Cong Hou2015-09-231-4/+4
| | | | | | Fixed the issue that when there is an edge from the jump table to the default statement, we should check it directly instead of checking if the sibling of the jump table header is a successor of the jump table header, which may not be the default statment but a successor of it. llvm-svn: 248354
* dsymutil: Fix a comment. [-Wdocumentation]NAKAMURA Takumi2015-09-231-1/+1
| | | | llvm-svn: 248353
* Use opaque_compiler_type_t in place of void*.Bruce Mitchener2015-09-239-381/+381
| | | | | | | | | | Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13060 llvm-svn: 248352
* Revert "[analyzer] Improve localizability checks for iOS / OS X."Devin Coughlin2015-09-234-861/+107
| | | | | | This reverts commit r248350. The pluralization checks are failing on some bots. llvm-svn: 248351
* [analyzer] Improve localizability checks for iOS / OS X.Devin Coughlin2015-09-224-107/+861
| | | | | | | | | | | | | | | | | | Various improvements to the localization checker: * Adjusted copy to be consistent with diagnostic text in other Apple API checkers. * Added in ~150 UIKit / AppKit methods that require localized strings in UnlocalizedStringsChecker. * UnlocalizedStringChecker now checks for UI methods up the class hierarchy and UI methods that conform for a certain Objective-C protocol. * Added in alpha version of PluralMisuseChecker and some regression tests. False positives are still not ideal. A patch by Kulpreet Chilana! Differential Revision: http://reviews.llvm.org/D12417 llvm-svn: 248350
* Fix a last minuted edit that should not have been committed.Rafael Espindola2015-09-221-1/+1
| | | | | | Sorry about that. llvm-svn: 248349
* Add a unit test for r248341.Adrian Prantl2015-09-221-1/+1
| | | | llvm-svn: 248348
* Implement --export-dynamic.Rafael Espindola2015-09-228-23/+73
| | | | llvm-svn: 248347
* [builtins] Fixing broken bot building on linux with -WerrorChris Bieneman2015-09-222-2/+4
| | | | | | Returning a void expression is bad. llvm-svn: 248346
* Module Debugging: Use the clang module signature as the module's dwo_idAdrian Prantl2015-09-228-8/+27
| | | | | | | | | | | when building a module. Clang already records the module signature when building a skeleton CU to reference a clang module. Matching the id in the skeleton with the one in the module allows a DWARF consumer to verify that they found the correct version of the module without them needing to know about the clang module format. llvm-svn: 248345
* Serialization: Let ASTWriter return the signature of the written module.Adrian Prantl2015-09-222-26/+34
| | | | | | NFC llvm-svn: 248344
OpenPOWER on IntegriCloud