summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [Sanitizer] fix compilation for WindowsAlexey Samsonov2013-03-141-2/+2
| | | | llvm-svn: 177054
* Fix an unused variable warning from Clang by sinking a dyn_cast into anChandler Carruth2013-03-141-2/+2
| | | | | | | | | | isa and a cast inside the assert. The efficiency concern isn't really important here. The code should likely be cleaned up a bit more, especially getting a message into the assert. Please review Rafael. llvm-svn: 177053
* [msan] Intercept __strdup, strndup, __strndup.Evgeniy Stepanov2013-03-144-10/+87
| | | | llvm-svn: 177052
* [Sanitizer] Write a slightly better implementation of GetEnv() function on ↵Alexey Samsonov2013-03-141-11/+30
| | | | | | Windows llvm-svn: 177051
* Fix dereference formatting in for-loops.Daniel Jasper2013-03-142-1/+2
| | | | | | Before: for (char **a = b; * a; ++a) {} After: for (char **a = b; *a; ++a) {} llvm-svn: 177037
* [ASan] make ASan assume ASAN_OPTIONS=symbolize=1 if ASAN_EXTERNAL_SYMBOLIZER ↵Alexey Samsonov2013-03-141-6/+8
| | | | | | is defined llvm-svn: 177036
* Add support for the 'endian' attribute for OpenCL.Joey Gouly2013-03-144-0/+29
| | | | llvm-svn: 177035
* Improve formatting of trailing annotations.Daniel Jasper2013-03-142-7/+15
| | | | | | | | | | | | Before: bool aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa __attribute__(( unused)); After: bool aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa __attribute__((unused)); llvm-svn: 177034
* Add two of the float related ARM-specific entries for e_flags needed forJoerg Sonnenberger2013-03-141-0/+2
| | | | | | linkers to interact with GNU ld. llvm-svn: 177016
* Fix the name of a variable to match its declaration. Fixes build failure ↵Craig Topper2013-03-141-1/+1
| | | | | | from r177014. llvm-svn: 177015
* Fix a bug in the calculation of the VEX.B bit for FMA4 rr with the VEX.W bit ↵Craig Topper2013-03-143-0/+17
| | | | | | set. The VEX.B was being calculated from the wrong operand. Fixes at least some portion of PR14185. llvm-svn: 177014
* [TSan] Add missing header inclusionAlexey Samsonov2013-03-141-0/+1
| | | | llvm-svn: 177013
* [TSan] Use __sanitizer_pthread_attr_t in TSanAlexey Samsonov2013-03-141-6/+1
| | | | llvm-svn: 177012
* Teach X86 MC instruction lowering that VMOVAPSrr and other VEX-encoded ↵Craig Topper2013-03-141-0/+42
| | | | | | register to register moves should be switched from using the MRMSrcReg form to the MRMDestReg form if the source register is a 64-bit extended register and the destination register is not. This allows the instruction to be encoded using the 2-byte VEX form instead of the 3-byte VEX form. The GNU assembler has similar behavior. llvm-svn: 177011
* Fix PR15309Michael Liao2013-03-142-1/+17
| | | | | | - Fix the typo on type checking llvm-svn: 177010
* test commit: remove blank line.Jiong Wang2013-03-141-1/+0
| | | | llvm-svn: 177009
* Remove a change to the debug info in this test, that I made while testingNick Lewycky2013-03-141-1/+1
| | | | | | something else and forgot to remove. llvm-svn: 177007
* Try using %S to find the emitted .gcno file.Nick Lewycky2013-03-141-5/+5
| | | | llvm-svn: 177006
* Remove accidentally committed debug line.Nick Lewycky2013-03-141-1/+0
| | | | llvm-svn: 177005
* Update GCOVProfiling pass creation for API change in r177002. No ↵Nick Lewycky2013-03-142-11/+13
| | | | | | functionality change. llvm-svn: 177004
* Flag that friend function definitions are "late parsed" so thatJohn McCall2013-03-142-5/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | template instantiation will still consider them to be definitions if we instantiate the containing class before we get around to parsing the friend. This seems like a legitimate use of "late template parsed" to me, but I'd appreciate it if someone responsible for the MS feature would look over this. This file already appears to access AST nodes directly, which is arguably not kosher in the parser, but the performance of this path matters enough that perpetuating the sin is justifiable. Probably we ought to reconsider this policy for very simple manipulations like this. The reason this entire thing is necessary is that function template instantiation plays some very gross games in order to not associate an instantiated function template with the class it came from unless it's a definition, and the reason *that's* necessary is that the AST currently cannot represent the instantiation history of individual function template declarations, but instead tracks it in common for the entire function template. That probably prevents us from correctly reporting ill-formed calls to ambiguously instantiated friend function templates. rdar://12350696 llvm-svn: 177003
* Refactor GCOV's six constructor arguments into a struct with a getter thatNick Lewycky2013-03-144-49/+113
| | | | | | | | | | constructs default arguments. It can now take default arguments from cl::opt'ions. Add a new -default-gcov-version=... option, and actually test it! Sink the reverse-order of the version into GCOVProfiling, hiding it from our users. llvm-svn: 177002
* [modules] Don't write the UnusedFileScopedDecls vector to the module file.Argyrios Kyrtzidis2013-03-141-2/+3
| | | | llvm-svn: 177001
* [modules] Check for delegating constructor cycles when building a module and ↵Argyrios Kyrtzidis2013-03-142-9/+12
| | | | | | don't write them out to the module file. llvm-svn: 177000
* Avoid computing the linkage too early. Don't invalidate it.Rafael Espindola2013-03-149-93/+150
| | | | | | | | | | | | | | | | | | Before this patch we would compute the linkage lazily and cache it. When the AST was modified in ways that could change the value, we would invalidate the cache. That was fairly brittle, since any code could ask for the a linkage before the correct value was available. We should change the API to one where the linkage is computed explicitly and trying to get it when it is not available asserts. This patch is a first step in that direction. We still compute the linkage lazily, but instead of invalidating a cache, we assert that the AST modifications didn't change the result. llvm-svn: 176999
* Added future directions comment and a couple of fixme's.John Thompson2013-03-141-1/+30
| | | | llvm-svn: 176998
* Fix typo in comment.Nick Lewycky2013-03-141-1/+1
| | | | llvm-svn: 176997
* [Support][Test] Missed this in the API change.Michael J. Spencer2013-03-141-0/+1
| | | | llvm-svn: 176996
* [Support] Fix lifetime of file descriptors when using MemoryBuffer.Michael J. Spencer2013-03-145-26/+41
| | | | | | | Clients of MemoryBuffer::getOpenFile expect it not to take ownership of the file descriptor passed in. So don't. llvm-svn: 176995
* No functionality change. Rename emitGCNO() to the more sensibleNick Lewycky2013-03-131-7/+7
| | | | | | | | | emitProfileNotes(), similar to emitProfileArcs(). Also update its comment. Also add a comment on Version[4] (there will be another comment in clang later), and compress lines that exceeded 80 columns. llvm-svn: 176994
* Simplify file/directory name handling in DILexicalBlockDavid Blaikie2013-03-132-6/+4
| | | | llvm-svn: 176993
* <rdar://problem/13415471>Han Ming Ong2013-03-131-6/+6
| | | | | | Don't get dirty page size if we are not going to send it back llvm-svn: 176992
* Really fix the MIPS test.Bill Wendling2013-03-131-2/+2
| | | | llvm-svn: 176991
* Remove an extra operand to a DIFile metadata entryDavid Blaikie2013-03-131-1/+1
| | | | | | (extra cleanup/fallout from r176983 - not sure why I didn't catch this locally) llvm-svn: 176988
* Attempt to fix test.Bill Wendling2013-03-131-2/+2
| | | | llvm-svn: 176987
* Reset some of the target options which affect code generation.Bill Wendling2013-03-133-1/+31
| | | | | | | | This doesn't reset all of the target options within the TargetOptions object. This is because some of those are ABI-specific and must be determined if it's okay to change those on the fly. llvm-svn: 176986
* Have these attriubtes set to 'true' or 'false'.Bill Wendling2013-03-131-52/+16
| | | | | | | | | The back-end cannot differentiate between functions that are from a .ll file and those generated from the front-end. We cannot then take the non-precense of these attributes as a "false" value. Have the front-end explicitly set the value to 'true' or 'false' depending upon what is actually set. llvm-svn: 176985
* Simplify directory name handling in DILexicalBlockFile.David Blaikie2013-03-131-5/+2
| | | | llvm-svn: 176984
* Remove the unused 4th operand for DIFile debug info metadataDavid Blaikie2013-03-1343-62/+63
| | | | llvm-svn: 176983
* Add braces to crashed test summary (needed for buildbots to detect crashes)Daniel Malea2013-03-131-1/+1
| | | | llvm-svn: 176980
* Remove extra whitespaceDaniel Malea2013-03-131-1/+1
| | | | llvm-svn: 176978
* Make LTO codegen use a PassManager, rather than a FunctionPassManager, for theLang Hames2013-03-131-13/+5
| | | | | | | | | | | | | codegen passes. This brings it in to line with clang and llc's codegen setup, and tidies up the code. If I understand correctly, adding ModulePasses to a FunctionPassManager is bogus. It only seems to explode if an added ModulePass depends on a FunctionPass though, which might be why this code has survived so long. Fixes <rdar://problem/13386816>. llvm-svn: 176977
* [Modules] Don't eagerly load and associate all the module header files.Argyrios Kyrtzidis2013-03-137-30/+90
| | | | | | | | | | | | | | In a module-enabled Cocoa PCH file, we spend a lot of time stat'ing the headers in order to associate the FileEntries with their modules and support implicit module import. Use a more lazy scheme by enhancing HeaderInfoTable to store extra info about the module that a header belongs to, and associate it with its module only when there is a request for loading the header info for a particular file. Part of rdar://13391765 llvm-svn: 176976
* [Modules] Resolve top-headers of modules lazily.Argyrios Kyrtzidis2013-03-139-25/+65
| | | | | | | | | | | This allows resolving top-header filenames of modules to FileEntries when we need them, not eagerly. Note that that this breaks ABI for libclang functions clang_Module_getTopLevelHeader / clang_Module_getNumTopLevelHeaders but this is fine because they are experimental and not widely used yet. llvm-svn: 176975
* Prepend "FAIL:" string to tests that crash so that buildbots pick them up.Daniel Malea2013-03-131-1/+1
| | | | llvm-svn: 176974
* Simplify CMake rules in HandleLLVMOptions module.Alexey Samsonov2013-03-131-27/+26
| | | | | | | | | | | | | | Summary: No functionality change. Reviewers: Bigcheese Reviewed By: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D535 llvm-svn: 176973
* Minor LLDB test improvementsDaniel Malea2013-03-132-10/+13
| | | | | | | | | - fix TestCPPBool (was failing with some versions of GCC due to num_breakpoint_locations) - speed up tests by skipping git/svn revision parsing by the test harness when running in lit-compatible (parsable) mode This should resolve the failures reported by http://lab.llvm.org:8011/builders/lldb-x86_64-linux llvm-svn: 176972
* Cause the mips16/nomips16 attribute to be passed to LLVM from ClangReed Kotler2013-03-132-4/+27
| | | | | | in the LLVM assembly language output. llvm-svn: 176971
* [ELF][X86_64][Hexagon] order plt/got entries properly and fix testShankar Easwaran2013-03-133-23/+45
| | | | llvm-svn: 176970
* [analyzer] BugReporter - more precise tracking of C++ referencesAnna Zaks2013-03-133-23/+117
| | | | | | | | | | | | | | | | When BugReporter tracks C++ references involved in a null pointer violation, we want to differentiate between a null reference and a reference to a null pointer. In the first case, we want to track the region for the reference location; in the second, we want to track the null pointer. In addition, the core creates CXXTempObjectRegion to represent the location of the C++ reference, so teach FindLastStoreBRVisitor about it. This helps null pointer suppression to kick in. (Patch by Anna and Jordan.) llvm-svn: 176969
OpenPOWER on IntegriCloud