summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix APFloat construction from 16 byte APInt.Chaoren Lin2015-07-071-18/+8
| | | | | | | | | | Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10976 llvm-svn: 241606
* Delete UnknownAddress. It is a perfectly valid symbol value.Rafael Espindola2015-07-0715-71/+41
| | | | | | | | | | | getSymbolValue now returns a value that in convenient for most callers: * 0 for undefined * symbol size for common symbols * offset/address for symbols the rest Code that needs something more specific can check getSymbolFlags. llvm-svn: 241605
* Use AlignOf instead of alignOf so that this can go back to being a ↵Aaron Ballman2015-07-071-3/+3
| | | | | | static_assert. Amends r241577. llvm-svn: 241604
* Simplify by passing in the section of the symbol. NFC.Rafael Espindola2015-07-071-22/+5
| | | | llvm-svn: 241603
* Revert r241570, it caused PR24053Nico Weber2015-07-071-22/+29
| | | | llvm-svn: 241602
* clang-format: Break after "for (" less eagerly.Daniel Jasper2015-07-072-1/+6
| | | | | | | | | | | | | | | | Before: for ( auto aaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); aaaaaaaaaaaaaaaaaaaaaaaaaaa != bbbbbbbbbbbbbbbbbbbbbbb; ++aaaaaaaaaaaaaaaaaaaaaaaaaaa) { After: for (auto aaaaaaaaaaaaaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); aaaaaaaaaaaaaaaaaaaaaaaaaaa != bbbbbbbbbbbbbbbbbbbbbbb; ++aaaaaaaaaaaaaaaaaaaaaaaaaaa) { llvm-svn: 241601
* [Hexagon] Fix unused variable warnings in NDEBUG build caused by r241595Krzysztof Parzyszek2015-07-072-12/+8
| | | | llvm-svn: 241600
* Fix bug in test-release.sh where the script would not exit if anyDan Liew2015-07-071-1/+5
| | | | | | | | | | | | | | of the build stages that are sent through a pipe (e.g. tee) failed. This potentially allowed builds and/or tests to fail without anyone noticing. It appears that for the LLVM 3.6.[01] releases this actually happened for the Ubuntu 14.04LTS binary releases. The essence of the issue is that without ``set -o pipefail`` the following command in bash has a zero exit code. false | tee /dev/null ; exit $? llvm-svn: 241599
* Don't put anonymous structs within anonymous unions.Douglas Gregor2015-07-071-4/+7
| | | | llvm-svn: 241598
* [WinEH] Add a report_fatal_error for 32-bit stack realignmentReid Kleckner2015-07-071-0/+5
| | | | | | | | | This type of prologue isn't supported yet. Implementing it should be a matter of copying the adjusted incoming EBP into ESI (the base pointer) instead of EBP. The original EBP can be saved and restored from other memory afterwards. llvm-svn: 241597
* Fix StringExtractor.h issues.Bruce Mitchener2015-07-072-2/+1
| | | | | | | | | | | | | | | | | | | | | Summary: Fix StringExtractor.h issues. * source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp (#include "Utility/StringExtractor.h): Not needed, this is already included by ProcessKDP.h * unittests/Utility/StringExtractorTest.cpp (#include "Utility/StringExtractor.h): Update include path to the new location. Reviewers: labath, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10995 llvm-svn: 241596
* [Hexagon] Implement bit-tracking facility with specifics for HexagonKrzysztof Parzyszek2015-07-075-0/+2832
| | | | | | | | This includes code that is intended to be target-independent as well as the Hexagon-specific details. This is just the framework without any users. llvm-svn: 241595
* Fix first line comment format, NFC.Yaron Keren2015-07-071-2/+1
| | | | llvm-svn: 241594
* Common symbols don't have a value.Rafael Espindola2015-07-073-8/+15
| | | | | | | | | | | | | At least not in the interface exposed by ObjectFile. This matches what ELF and COFF implement. Adjust existing code that was expecting them to have values. No overall functionality change intended. Another option would be to change the interface and the ELF and COFF implementations to say that the value of a common symbol is its size. llvm-svn: 241593
* use range-based for loops; NFCISanjay Patel2015-07-071-35/+17
| | | | llvm-svn: 241592
* [lldb-mi] Spell resource string name correctly.Bruce Mitchener2015-07-073-4/+4
| | | | | | | | | | | | | | Broardcaster -> Broadcaster Summary: [lldb-mi] Spell resource string name correctly. Reviewers: abidh, ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10993 llvm-svn: 241591
* cmake no longer needs to deal with -std=c++11 checks.Bruce Mitchener2015-07-071-26/+0
| | | | | | | | | | | | | | | | LLVM requires and handles this now and has the correct compiler version checks. This block of code for cmake in LLDB is no longer needed. Summary: cmake no longer needs to deal with -std=c++11 checks. Reviewers: labath Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10994 llvm-svn: 241590
* Fix _LocalProcess.terminate on Windows.Adrian McCarthy2015-07-071-12/+9
| | | | llvm-svn: 241589
* Fix test case to unbreak build.Akira Hatanaka2015-07-071-9/+18
| | | | | | | | This commit changes the target arch to fix the test case commited in r241566 that was failing on ninja-x64-msvc-RA-centos6. Also add checks to make sure the callee's address is loaded to blx's operand. llvm-svn: 241588
* Common symbols are not undefined, at least for ObjectFile.Rafael Espindola2015-07-072-3/+11
| | | | | | | | | They are implemented like that in some object formats, but for the interface provided by lib/Object, SF_Undefined and SF_Common are different things. This matches the ELF and COFF implementation and fixes llvm-nm for MachO. llvm-svn: 241587
* [lldb-mi] Fix typo in variable name.Bruce Mitchener2015-07-071-4/+4
| | | | | | | | | | | | | | Seperated -> Separated. Summary: [lldb-mi] Fix typo in variable name. Reviewers: abidh, ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10992 llvm-svn: 241586
* [lldb-mi] Fix typosBruce Mitchener2015-07-0737-64/+64
| | | | llvm-svn: 241585
* Simplify, NFC.Rafael Espindola2015-07-071-3/+2
| | | | | | | | In these two contexts we really just want the raw n_value. No need to use getSymbolValue which checks for special cases where, semantically, the symbol has no value. llvm-svn: 241584
* clang-format: Don't wrap before the ] of a lambda introducer.Daniel Jasper2015-07-072-0/+8
| | | | | | | | | | | | | | | | Before: return aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa([= ](int iiiiiiiiiiii) { return aaaaaaaaaaaaaaaaaaaaaaa != aaaaaaaaaaaaaaaaaaaaaaa; }); After: return aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa([=]( int iiiiiiiiiiii) { return aaaaaaaaaaaaaaaaaaaaaaa != aaaaaaaaaaaaaaaaaaaaaaa; }); llvm-svn: 241583
* Silence -Wparentheses warnings (and ran it through clang-format); NFC.Aaron Ballman2015-07-071-9/+10
| | | | llvm-svn: 241582
* Silence a -Wcast-qual warning; NFC.Aaron Ballman2015-07-071-11/+7
| | | | llvm-svn: 241581
* Silence a -Wunused-variable warning; NFC.Aaron Ballman2015-07-071-5/+3
| | | | llvm-svn: 241580
* Appease MSVC 2013 a few more times, which was complaining about a syntax ↵Aaron Ballman2015-07-072-5/+10
| | | | | | error with an unexpected close curly brace. For some reason, the range-based for loop requires curly braces to compile in MSVC. llvm-svn: 241579
* Appease MSVC 2013, which was complaining about a syntax error with an ↵Aaron Ballman2015-07-071-1/+2
| | | | | | unexpected close curly brace. For some reason, the range-based for loop requires curly braces to compile in MSVC. llvm-svn: 241578
* Changing a use of alignof() into llvm::alignOf() for MSVC compatibility. ↵Aaron Ballman2015-07-071-2/+3
| | | | | | This requires changing a static_assert into an assert, too. llvm-svn: 241577
* Enclose CLANG_USED_LIBS in --start/end-group when linking liblldb (bug #24044)Pavel Labath2015-07-071-1/+7
| | | | | | Patch by Eugene Zelenko. llvm-svn: 241576
* LLDB standalone build: check if Clang was built independently from LLVMPavel Labath2015-07-071-1/+3
| | | | | | | | | | This is fix for bug 23704: LLDB standalone build always include ClangConfig.cmake even if Clang was built with LLVM (ClangConfig.cmake doesn't exist). Patch by: Eugene Zelenko llvm-svn: 241575
* Fix-up ProcessKDP wrt. StringExtractor movePavel Labath2015-07-071-1/+1
| | | | llvm-svn: 241574
* Fix build after recent clang interface changesPavel Labath2015-07-074-5/+11
| | | | llvm-svn: 241573
* Fix cmake build after recent JSON changesPavel Labath2015-07-077-5/+7
| | | | | | | I have moved StringExtractor.h into the include/ folder so that it can be properly included by everyone. llvm-svn: 241572
* [asan] Add missing $ASAN_OPTIONS to some test casesKuba Brecka2015-07-079-9/+9
| | | | | | | | Since http://reviews.llvm.org/D10294, ASan test cases now respect default env. options via `ASAN_OPTION=$ASAN_OPTIONS:additional_options=xxx`. This patch adds this to a few test cases where it's still missing. Differential Revision: http://reviews.llvm.org/D10988 llvm-svn: 241571
* [IR] Make getFirstNonPHI return null if the BB is emptyDavid Majnemer2015-07-071-29/+22
| | | | | | | | | | | | getFirstNonPHI's documentation states that it returns null if there is no non-PHI instruction. However, it instead returns a pointer to the end iterator. The implementation of getFirstNonPHI claims that dereferencing the iterator will result in an assertion failure but this doesn't occur. Instead, machinery like getFirstInsertionPt will attempt to isa<> this invalid memory which results in unpredictable behavior. Instead, make getFirst* return null if no such instruction exists. llvm-svn: 241570
* Leave OS as unspecified unknown if it isn't specified in the ELF fileTamas Berghammer2015-07-071-11/+6
| | | | | | | | | This is the redone of r238623 what was reverted with the refactor in r239148. Differential revision: http://reviews.llvm.org/D10957 llvm-svn: 241569
* Add a comment to explain how the decision to pass feature "+long-calls" is made.Akira Hatanaka2015-07-071-0/+3
| | | | llvm-svn: 241568
* Fix gcc warnings of different enum and non-enum types in ternariesDenis Protivensky2015-07-072-9/+9
| | | | llvm-svn: 241567
* [ARM] Define a subtarget feature and use it to decide whether long calls shouldAkira Hatanaka2015-07-0710-21/+63
| | | | | | | | | | | | | | | | | be emitted. This is needed to enable ARM long calls for LTO and enable and disable it on a per-function basis. Out-of-tree projects currently using EnableARMLongCalls to emit long calls should start passing "+long-calls" to the feature string (see the changes made to clang in r241565). rdar://problem/21529937 Differential Revision: http://reviews.llvm.org/D9364 llvm-svn: 241566
* [ARM] Pass subtarget feature "+long-calls" instead of passing backend optionAkira Hatanaka2015-07-074-20/+21
| | | | | | | | | | | | | "-arm-long-calls". This change allows using -mlong-calls/-mno-long-calls for LTO and enabling or disabling long call on a per-function basis. rdar://problem/21529937 Differential Revision: http://reviews.llvm.org/D9414 llvm-svn: 241565
* Don't rely on the use of non-POD types within unions.Douglas Gregor2015-07-072-5/+16
| | | | | | | They aren't universally supported and we're not getting any benefit from using them. llvm-svn: 241564
* s/__nonnull/_Nonnull in a test for Objective-C __kindof.Douglas Gregor2015-07-071-1/+1
| | | | llvm-svn: 241563
* [AST] Add a comment for ObjCMethodDecl::getSendResultType() function.Douglas Gregor2015-07-071-1/+3
| | | | llvm-svn: 241562
* [libclang] Implement proper code-completion in an ObjC type parameter position.Douglas Gregor2015-07-074-2/+35
| | | | | | rdar://19670303 llvm-svn: 241561
* [libclang] When inferring nonnull use the contextual keyword for the ↵Douglas Gregor2015-07-072-1/+21
| | | | | | | | | | code-completion results, when appropriate. rdar://20742295 llvm-svn: 241560
* [libclang] Replace ObjC generic parameters when code-completing method ↵Douglas Gregor2015-07-074-5/+22
| | | | | | | | implementations. rdar://20643768 llvm-svn: 241559
* [libclang] Fix code-completion of block parameters that are marked with ↵Douglas Gregor2015-07-073-6/+26
| | | | | | | | nullability specifier. rdar://20755276 llvm-svn: 241558
* [libclang] Replace ObjC generic parameters in code-completion results.Douglas Gregor2015-07-077-48/+147
| | | | | | rdar://19369529 llvm-svn: 241557
OpenPOWER on IntegriCloud