summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Implemented clang-tidy-check-specific options.Alexander Kornienko2014-09-1235-58/+263
| | | | | | | | | | | | | | | | | Summary: Each check can implement readOptions and storeOptions methods to read and store custom options. Each check's options are stored in a local namespace to avoid name collisions and provide some sort of context to the user. Reviewers: bkramer, klimek Reviewed By: klimek Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5296 llvm-svn: 217661
* Add Tom Stellard's role as 3.5 release manager.Joerg Sonnenberger2014-09-121-1/+1
| | | | llvm-svn: 217659
* Every code owner should be reachable via email, so add one forJoerg Sonnenberger2014-09-121-0/+2
| | | | | | Douglas Gregor and Ted Kremenek. llvm-svn: 217658
* llvm-cov: Move FunctionCoverageMapping into CoverageMapping.h (NFC)Justin Bogner2014-09-128-47/+22
| | | | llvm-svn: 217657
* Use unique_ptr for ScratchBuf and PragmaHandlers in the preprocessor.Craig Topper2014-09-123-21/+14
| | | | llvm-svn: 217656
* Remove a temporary variable and just construct a unique_ptr directly using ↵Craig Topper2014-09-121-9/+6
| | | | | | make_unique. llvm-svn: 217655
* MS ABI: The latest VC "14" CTP implements deleted virtual functionsDavid Majnemer2014-09-123-13/+10
| | | | | | | | | | | | Deleted virtual functions get _purecall inserted into the vftable. Earlier CTPs would simply stick nullptr in there. N.B. MSVC can't handle deleted virtual functions which require return adjusting thunks, they give an error that a deleted function couldn't be called inside of a compiler generated function. We get this correct by making the thunk have a __purecall entry as well. llvm-svn: 217654
* Fix the ctor ivar initialization formatting for Debugger,Jason Molenda2014-09-124-37/+37
| | | | | | | TypeValidatorImpl, FileAction, and ProcessLaunchInfo to match the lldb coding convention. llvm-svn: 217653
* Revert r217616. Problems and complexity it introduces negate its benefitAlexey Samsonov2014-09-127-21/+18
| | | | llvm-svn: 217652
* Recent builds of libcxx actually wrap an std::map's children values in a ↵Enrico Granata2014-09-121-1/+29
| | | | | | union containing either a member named __cc, or either of __cc and __nc (const vs. non-const). This level of wrapping is quite useless for LLDB to show to people, so try to detect it, and filter it out llvm-svn: 217651
* [mach-o] support "0x" or "0X" as prefix on hex numbers on command lineNick Kledzik2014-09-121-5/+9
| | | | | | This matches the strtoull() behavior in ld64. llvm-svn: 217650
* Change SystemRuntimeMacOSX::ReadLibdispatchTSDIndexes to use theJason Molenda2014-09-121-50/+26
| | | | | | | | ProcessStructReader instead of reading the structure out of libdispatch by hand. I will convert more of the struct readers in SystemRuntimeMacOSX over to use this class eventually. llvm-svn: 217649
* Object: Small cleanup in COFFObjectFile::getSymbolDavid Majnemer2014-09-111-3/+3
| | | | | | NFC. llvm-svn: 217648
* llgs: fix Ctrl-C inferior interrupt handling to do the right thing.Todd Fiala2014-09-119-55/+271
| | | | | | | | | | | | | | | | * Sends a SIGSTOP to the process. * Fixes busted SIGSTOP handling. Now builds a list of non-stopped that we wait for the PTRACE group-stop for. When the final must-stop tid gets its group stop, we propagate the process state change. Only the signal receiving the notification of the pending SIGSTOP is marked with the SIGSTOP signal. All the rest, if they weren't already stopped, are marked as stopped with signal 0. * Fixes a few broken tests. * Marks the Linux test I added earlier as expect-pass (no longer XFAIL). Implements fix for http://llvm.org/bugs/show_bug.cgi?id=20908. llvm-svn: 217647
* Revert "llvm-cov: Remove an overly system specific test"Justin Bogner2014-09-113-1/+32
| | | | | | | | | | This fixes a call to sys::fs::equivalent that should've been to CodeCoverageTool::equivalentFiles, which lets us restore the test of r217476 that was removed in r217478. This reverts r217478, but the test works this time. llvm-svn: 217646
* [PECOFF] Do r217639 leftover.Rui Ueyama2014-09-111-9/+9
| | | | llvm-svn: 217645
* Add a ProcessStructReader utility class to LLDBEnrico Granata2014-09-112-0/+100
| | | | | | | | | | The purpose of a ProcessStructReader is to allow intelligent reading of data from the underlying process Traditionally, the way this has been handled is to have a load_address and shuffle it around, and use Process::ReadMemory()-kind APIs With a ProcessStructReader one can define a clang type that matches exactly the definition of the thing they are trying to ingest from the inferior process, and then just point LLDB at where the data is Since this work is done in terms of clang types, one can honor packed/aligned attributes, sizes of types on the inferior architecture, and similar tricky caveats without having to hardcode them llvm-svn: 217644
* [MCJIT] Improve the "stub not found" diagnostic in RuntimeDyldChecker.Lang Hames2014-09-111-1/+4
| | | | | | | | | | | | | A "stub found found" diagnostic is emitted when RuntimeDyldChecker's stub lookup logic fails to find the requested stub. The obvious reason for the failure is that no such stub has been created, but it can also fail for internal symbols if the symbol offset is not computed correctly (E.g. due to a mangled relocation addend). This patch adds a comment about the latter case so that it's not overlooked. Inspired by confusion experienced during test case construction for r217635. llvm-svn: 217643
* MS ABI: Use the correct this arg when generating implict copy ctorDavid Majnemer2014-09-115-4/+43
| | | | | | | | | | We assumed that the incoming this argument would be the last argument. However, this is not true under the MS ABI. This fixes PR20897. llvm-svn: 217642
* When deciding if one-liner printing applies, and you find a summary, the ↵Enrico Granata2014-09-111-3/+2
| | | | | | summary is a good candidate to ask. While in theory one could want one-liner printing with a non-one-liner summary, I don't see LLDB as the best place to solve such inner conflicts llvm-svn: 217641
* [PECOFF] Use ulittle32_t::operator+=.Rui Ueyama2014-09-111-15/+9
| | | | llvm-svn: 217639
* [Support][Endian] Overload += and -=Rui Ueyama2014-09-111-0/+10
| | | | | | | This patch is to overload operator+= and operator-= for {u}{little}{big}{16,32,64}_t. llvm-svn: 217637
* R600/SI: Fix off by 1 error in used register countMatt Arsenault2014-09-112-3/+12
| | | | | | | The register numbers start at 0, so if only 1 register was used, this was reported as 0. llvm-svn: 217636
* [MCJIT] Make sure we test ARM BR24 relocations with both internal and externalLang Hames2014-09-111-2/+7
| | | | | | | | | | symbols. Previously we have only been testing these relocations with external symbols. <rdar://problem/18308413> llvm-svn: 217635
* Add missing constructor definition.Zachary Turner2014-09-111-0/+5
| | | | llvm-svn: 217634
* Support: Use llvm::COFF::BigObjMagicRui Ueyama2014-09-112-8/+16
| | | | | | | Use llvm::COFF::BigObjMagic insetad of the string literal. Also checks the version number. llvm-svn: 217633
* Update HostProcess to use the same facade pattern as HostThread.Zachary Turner2014-09-1110-101/+197
| | | | llvm-svn: 217632
* Support: Delete {aligned_,}{u,}{little,big}8_tRui Ueyama2014-09-117-81/+60
| | | | | | | The byte has no endianness, so these types don't make sense. uint8_t should be used instead. llvm-svn: 217631
* [C API] Make the 'lower switch' pass available via the C API.Juergen Ributzka2014-09-112-0/+7
| | | | llvm-svn: 217630
* [CodeGenPrepare] Teach the addressing mode matcher how to promote zext.Quentin Colombet2014-09-112-13/+71
| | | | | | I.e., teach it about 'sext (zext a to ty) to ty2' => zext a to ty2. llvm-svn: 217629
* Remove the unused string section symbol parameter from DwarfFile::emitStringsDavid Blaikie2014-09-119-61/+43
| | | | | | | | | | | | | | | | | | | And since it /looked/ like the DwarfStrSectionSym was unused, I tried removing it - but then it turned out that DwarfStringPool was reconstructing the same label (and expecting it to have already been emitted) and uses that. So I kept it around, but wanted to pass it in to users - since it seemed a bit silly for DwarfStringPool to have it passed in and returned but itself have no use for it. The only two users don't handle strings in both .dwo and .o files so they only ever need the one symbol - no need to keep it (and have an unused symbol) in the DwarfStringPool used for fission/.dwo. Refactor a bunch of accelerator table usage to remove duplication so I didn't have to touch 4-5 callers. llvm-svn: 217628
* Support: improve identify_magic to recognize COFF bigobjRui Ueyama2014-09-112-3/+12
| | | | | | | identify_magic recognized a COFF bigobj as an import library file. This patch fixes that. llvm-svn: 217627
* Always check that instantiateMember returns only one file.Rui Ueyama2014-09-111-9/+12
| | | | | | Also make it private as it doesn't have to be protected function. llvm-svn: 217626
* Misc cleanups to the FileSytem api.Rafael Espindola2014-09-117-86/+66
| | | | | | | | | | | | | | | | The main difference is the removal of std::error_code exists(const Twine &path, bool &result); It was an horribly redundant interface since a file not existing is also a valid error_code. Now we have an access function that returns just an error_code. This is the only function that has to be implemented for Unix and Windows. The functions can_write, exists and can_execute an now just wrappers. One still has to be very careful using these function to avoid introducing race conditions (Time of check to time of use). llvm-svn: 217625
* Fix Windows build.Zachary Turner2014-09-112-0/+3
| | | | | | | | * ssize_t isn't defined by default on Windows. * New public API files need to be defined in a different file for Windows. llvm-svn: 217624
* Add missing colon to RUN line...Bill Schmidt2014-09-111-1/+1
| | | | llvm-svn: 217623
* [PATCH, PowerPC] Accept 'U' and 'X' constraints in inline asmBill Schmidt2014-09-112-0/+42
| | | | | | | | | | | | | | | | | | Inline asm may specify 'U' and 'X' constraints to print a 'u' for an update-form memory reference, or an 'x' for an indexed-form memory reference. However, these are really only useful in GCC internal code generation. In inline asm the operand of the memory constraint is typically just a register containing the address, so 'U' and 'X' make no sense. This patch quietly accepts 'U' and 'X' in inline asm patterns, but otherwise does nothing. If we ever unexpectedly see a non-register, we'll assert and sort it out afterwards. I've added a new test for these constraints; the test case should be used for other asm-constraints changes down the road. llvm-svn: 217622
* Thread Safety Analysis: Avoid infinite recursion in an operator<<Justin Bogner2014-09-111-2/+2
| | | | | | | | | | | | | | | | | | r217556 introduced an operator<<(std::ostream &, StringRef) that seems to self recurse on some systems, because str.data(), which is a char *, was being implicitly converted back to StringRef in overload resolution. This manifested as SemaCXX/warn-thread-safety-analysis.cpp timing out in release builds and overflowing the stack in debug builds. One of the failing systems that saw this is here: http://lab.llvm.org:8013/builders/clang-x86_64-darwin11-nobootstrap-RAincremental/builds/4636 Using ostream's write method instead of operator<< should get the bots going again. llvm-svn: 217621
* [MCJIT] Add support for ARM HALF_DIFF relocations to MCJIT.Lang Hames2014-09-115-73/+202
| | | | | | Fixes <rdar://problem/18297804>. llvm-svn: 217620
* Objective-C. Under a special flag, -Wcstring-format-directive,Fariborz Jahanian2014-09-114-35/+89
| | | | | | | | | off by default, issue a warning if %s directive is used in formart argument of a function/method declared as __attribute__((format(CF/NSString, ...))) To complete rdar://18182443 llvm-svn: 217619
* Use simpler version of sys::fs::exists. NFC.Rafael Espindola2014-09-111-3/+2
| | | | llvm-svn: 217618
* Use the simpler sys::fs:;exists. NFC.Rafael Espindola2014-09-111-2/+1
| | | | llvm-svn: 217617
* [UBSan] Parse common flags from UBSAN_OPTIONS runtime variable even ifAlexey Samsonov2014-09-117-18/+21
| | | | | | UBSan is combined with ASan. llvm-svn: 217616
* clang-cl: Add support for the /o option for object files, executables, and ↵Ehsan Akhgari2014-09-113-8/+169
| | | | | | | | | | | | | | | | | | | | | | | | | preprocessor output Summary: cl.exe recognizes /o as a deprecated and undocumented option similar to /Fe. This patch adds support for this option to clang-cl for /Fe, /Fo and /Fi. It also ensures that the last option among /o and /F* wins, if both specified. This is required at least for building autoconf based software, since autoconf uses -o to specify the executable output. This fixes http://llvm.org/PR20894. Test Plan: The patch includes automated tests. Reviewers: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5308 llvm-svn: 217615
* Use the simpler version of llvm::sys::fs::exists.Rafael Espindola2014-09-115-20/+7
| | | | | | | In all these cases it looks like the intention was to handle error in a similar way to the file not existing. llvm-svn: 217614
* gdb-remote tests: added test to verify thread stop info when multi-threaded ↵Todd Fiala2014-09-111-9/+46
| | | | | | | | | | app is interrupted. The Linux version is marked XFAIL for the moment, fixing next. Related to http://llvm.org/bugs/show_bug.cgi?id=20908. llvm-svn: 217613
* Add triple to test to fix botsMatt Arsenault2014-09-111-1/+1
| | | | llvm-svn: 217612
* Provide an implementation of getNoopForMachoTarget for SPARC.Brad Smith2014-09-113-0/+15
| | | | llvm-svn: 217611
* Add DAG combine for shl + add of constants.Matt Arsenault2014-09-116-41/+157
| | | | | | | | | | | | | | Do (shl (add x, c1), c2) -> (add (shl x, c2), c1 << c2) This is already done for multiplies, but since multiplies by powers of two are turned into shifts, we also need to handle it here. This might want checks for isLegalAddImmediate to avoid transforming an add of a legal immediate with one that isn't. llvm-svn: 217610
* Update C++ status page to reflect that Clang 3.5 has released.Richard Smith2014-09-111-4/+4
| | | | llvm-svn: 217609
OpenPOWER on IntegriCloud