summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* R600: Remove leftover code in R600MachineScheduler.cppVincent Lejeune2013-06-061-16/+0
| | | | | | Spotted by Benjamin Kramer. llvm-svn: 183413
* [lsan] Implement __lsan_ignore_object().Sergey Matveev2013-06-068-12/+129
| | | | | | Leak annotation similar to HeapChecker's IgnoreObject(). llvm-svn: 183412
* [ASan] make pthread_getschedparam test more robustAlexey Samsonov2013-06-061-2/+2
| | | | llvm-svn: 183411
* Simplify lit configs for asan/lsan/msan unit testsAlexey Samsonov2013-06-066-73/+18
| | | | llvm-svn: 183410
* Fix a crash with -Wassign-enum, where we didn't adjust the APInt type of theJoey Gouly2013-06-063-11/+24
| | | | | | | | | | constant. Also fix some spelling mistakes and formatting issues. Reviewed by Richard Smith over IRC. Fixes PR15069. llvm-svn: 183409
* tsan: always strip bottom frame in Go reportsDmitry Vyukov2013-06-061-2/+3
| | | | llvm-svn: 183408
* Remove a bunch of copy-paste: use common config for sanitizer lit/unit testsAlexey Samsonov2013-06-0617-172/+39
| | | | llvm-svn: 183407
* clang-check: add missing space in MakefileHans Wennborg2013-06-061-1/+1
| | | | llvm-svn: 183406
* tsan: fix darwin Go crashesDmitry Vyukov2013-06-061-0/+7
| | | | llvm-svn: 183405
* clang-check: Link the static analyzer in the Makefile build too.Benjamin Kramer2013-06-061-3/+4
| | | | llvm-svn: 183404
* Print symbol names in relocations when dumping COFF as YAML.Rafael Espindola2013-06-067-23/+42
| | | | llvm-svn: 183403
* tsan: fix darwin Go buildDmitry Vyukov2013-06-062-0/+5
| | | | llvm-svn: 183402
* [ASan] create common autogenerated config for running compiler-rt unit ↵Alexey Samsonov2013-06-064-21/+32
| | | | | | tests, and use it in ASan llvm-svn: 183401
* [ASan] lit tests: create common autogenerated config for running compiler-rt ↵Alexey Samsonov2013-06-066-28/+33
| | | | | | lit tests, and use it in ASan llvm-svn: 183400
* Add support for static analysis to clang-checkPavel Labath2013-06-063-8/+41
| | | | | | | | | | | | | | Summary: This adds a command line argument '-analyze' to clang-check which runs the clang static analyzer on the source files. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D926 llvm-svn: 183399
* ClangTool: strip -o from the command linePavel Labath2013-06-065-3/+38
| | | | | | | | | | | | | | Summary: This patch creates a new ArgumentsAdjuster, which removes all -o parameters from the command line. This adjuster is inserted by default into the ClangTool pipeline. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D925 llvm-svn: 183398
* Implement DR1270: braces can be elided in all aggregate initialization, notRichard Smith2013-06-063-39/+21
| | | | | | | just copy-list-initialization in a variable declaration. This effectively reverts r142147. llvm-svn: 183397
* [ASan] move all lit_tests under TestCasesAlexey Samsonov2013-06-06100-3/+4
| | | | llvm-svn: 183395
* Disallow reinterpret_cast from pointer to bool on WindowsHans Wennborg2013-06-063-3/+14
| | | | | | | | | | | | This became allowed by accident in r131201, but triggers an assert. That patch added an exception to allow conversion from pointers to narrow integral types for MSVC compatibility. However, a pointer can already be converted to bool in a civilized manner; allowing conversion via reinterpret_cast is a bad idea. Fixes PR16222. llvm-svn: 183394
* Fix clang-format's expression parser for leading }s.Daniel Jasper2013-06-062-1/+9
| | | | | | | | The leading "}" in the construct "} else if (..) {" was confusing the expression parser. Thus, no fake parentheses were generated and the indentation was broken in some cases. llvm-svn: 183393
* [LSan] remove unneeded empty directoryAlexey Samsonov2013-06-060-0/+0
| | | | llvm-svn: 183392
* [ASan] Add a few tests for use-after-scope modeAlexey Samsonov2013-06-064-0/+85
| | | | llvm-svn: 183391
* [ASan] One more fix for realloc: check that reallocated chunk is valid ↵Alexey Samsonov2013-06-061-6/+12
| | | | | | before calling memcpy llvm-svn: 183390
* Improve c-style cast detection.Daniel Jasper2013-06-062-1/+7
| | | | | | | | | | | | | | Before: return (my_int) aaaa; template <> void f<int>(int i)SOME_ANNOTATION; f("aaaa" SOME_MACRO(aaaa)"aaaa"); After: return (my_int)aaaa; template <> void f<int>(int i) SOME_ANNOTATION; f("aaaa" SOME_MACRO(aaaa) "aaaa"); llvm-svn: 183389
* When a static storage duration temporary appears in a constant expression, itRichard Smith2013-06-062-2/+17
| | | | | | | | must be initialized by a constant expression (not just a core constant expression), because we're going to emit it as a global. Core issue for this is pending. llvm-svn: 183388
* [ASan] make free_hook_realloc test more robustAlexey Samsonov2013-06-061-4/+17
| | | | llvm-svn: 183387
* Cast to the correct type. Pointer, not reference.Bill Wendling2013-06-061-1/+1
| | | | llvm-svn: 183385
* Don't create a StringRef from a temporary string.Richard Trieu2013-06-061-1/+1
| | | | llvm-svn: 183372
* R600OptimizeVectorRegisters.cpp: Tweak a warning. [-Wsometimes-uninitialized]NAKAMURA Takumi2013-06-061-1/+1
| | | | | FIXME: Is it false alarm? llvm-svn: 183371
* R600OptimizeVectorRegisters.cpp: Suppress a warning. [-Wunused-variable]NAKAMURA Takumi2013-06-061-0/+1
| | | | llvm-svn: 183370
* Trailing linefeed.NAKAMURA Takumi2013-06-061-1/+0
| | | | llvm-svn: 183369
* [analyzer] Look through ExprWithCleanups to see if an expr's consumed.Jordan Rose2013-06-063-20/+56
| | | | | | | | | | We based decisions during analysis and during path generation on whether or not an expression is consumed, so if a top-level expression has cleanups it's important for us to look through that. <rdar://problem/14076125> llvm-svn: 183368
* [analyzer] Improve debug output for PathDiagnosticPieces.Jordan Rose2013-06-062-57/+90
| | | | | | You can now dump a single PathDiagnosticPiece or PathDiagnosticLocation. llvm-svn: 183367
* clang/unittests/Format/FormatTest.cpp: Suppress utf8 literals with _MSC_VER. ↵NAKAMURA Takumi2013-06-061-0/+5
| | | | | | | MS cl.exe is unaware of BOM-less utf8 source files. FIXME: Encode Cyrillic and CJK characters below to appease MS compilers. llvm-svn: 183366
* Cast to the proper type.Bill Wendling2013-06-061-1/+1
| | | | llvm-svn: 183365
* <rdar://problem/14064994>Enrico Granata2013-06-061-5/+4
| | | | | | Fixing a test case to correctly check that the class name has changed instead of relying on GetValueDidChange() llvm-svn: 183364
* Remove unneeded cast<>.Jakub Staszak2013-06-061-2/+2
| | | | llvm-svn: 183363
* Add some class documentation to BinaryRef.Sean Silva2013-06-061-2/+40
| | | | llvm-svn: 183362
* Cache the TargetLowering info object as a pointer.Bill Wendling2013-06-0617-81/+80
| | | | | | | Caching it as a pointer allows us to reset it if the TargetMachine object changes. llvm-svn: 183361
* Use IRBuilder instead of ConstantInt methods.Jakub Staszak2013-06-061-27/+17
| | | | llvm-svn: 183360
* [analyzer] Fix a crash that occurs when processing an rvalue array.Anna Zaks2013-06-062-1/+30
| | | | | | | | | | When processing ArrayToPointerDecay, we expect the array to be a location, not a LazyCompoundVal. Special case the rvalue arrays by using a location to represent them. This case is handled similarly elsewhere in the code. Fixes PR16206. llvm-svn: 183359
* [analyzer; new edges] Don't crash if the top-level entry edge is missing.Jordan Rose2013-06-062-7/+196
| | | | | | | | | | | We previously asserted that there was a top-level function entry edge, but if the function decl's location is invalid (or within a macro) this edge might not exist. Change the assertion to an actual check, and don't drop the first path piece if it doesn't match. <rdar://problem/14070304> llvm-svn: 183358
* [analyzer; new edges] Ignore self-edges, not all edges with the same location.Jordan Rose2013-06-063-49/+1990
| | | | | | | | | | | | | | | The edge optimizer needs to see edges for, say, implicit casts (which have the same source location as their operand) to uniformly simplify the entire path. However, we still don't want to produce edges from a statement to /itself/, which could occur when two nodes in a row have the same statement location. This necessitated moving the check for redundant notes to after edge optimization, since the check relies on notes being adjacent in the path. <rdar://problem/14061675> llvm-svn: 183357
* Don't cache the TargetLoweringInfo object inside of the FunctionLowering object.Bill Wendling2013-06-063-20/+22
| | | | | | | | The TargetLoweringInfo object is owned by the TargetMachine. In the future, the TargetMachine object may change, which may also change the TargetLoweringInfo object. llvm-svn: 183356
* If we're splitting the dwarf for fission and don't want to use theEric Christopher2013-06-052-0/+18
| | | | | | | | | | integrated assembler then go ahead and still split the dwarf anyhow. Add two tests, one to exercise existing behavior of not splitting when we're just emitting assembly files and the other to test that we split when we're not in integrated as mode. llvm-svn: 183355
* Rename operator== parameter to `RHS`.Sean Silva2013-06-051-3/+3
| | | | | | The previous name `Ref` is overly generic. llvm-svn: 183354
* Remove error-prone methods of BinaryRef.Sean Silva2013-06-051-8/+0
| | | | | | | | | | | | | A user shouldn't care about the internal state, and these methods by their very nature require asserting a predicate on the internal state. As such, they cannot be used safely without introducing hidden long-distance dependencies on the manner of construction of the BinaryRef. Use writeAsBinary(raw_ostream &) and writeAsHex(raw_ostream &) if you need to access the data in a binary or hex format. llvm-svn: 183353
* Add writeAsHex(raw_ostream &) method to BinaryRef.Sean Silva2013-06-052-7/+19
| | | | | | | This hides the implementation. A future commit will remove the error-prone getHex() and getBinary() methods. llvm-svn: 183352
* R600: Replace predicate loop with predicate functionTom Stellard2013-06-051-11/+13
| | | | llvm-svn: 183351
* Rename BinaryRef::isBinary to more descriptive DataIsHexString.Sean Silva2013-06-052-9/+10
| | | | | | And add a doxygen comment. llvm-svn: 183350
OpenPOWER on IntegriCloud