summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* modern objective-c rewriter: remove 'const' fromFariborz Jahanian2012-03-211-34/+30
| | | | | | | pointer field declarations in several meta-data. // rdar://11079898 llvm-svn: 153196
* Removed repeated word (of of).Patrick Beard2012-03-211-1/+1
| | | | llvm-svn: 153195
* It appears that the standard accidentally removed the default constructor ↵Howard Hinnant2012-03-211-1/+1
| | | | | | for error_category. I'm putting it back in. This fixes http://llvm.org/bugs/show_bug.cgi?id=12321. llvm-svn: 153194
* Undo previous patch as I checked more than I intended.Fariborz Jahanian2012-03-213-38/+37
| | | | llvm-svn: 153193
* modern objective-c rewriter: remove 'const' fromFariborz Jahanian2012-03-213-37/+38
| | | | | | | pointer field declarations in several meta-data. // rdar://11079898 llvm-svn: 153192
* [asan] extend the test for long double bugKostya Serebryany2012-03-211-0/+2
| | | | llvm-svn: 153190
* [asan] fix one more bug related to long doubleKostya Serebryany2012-03-211-1/+1
| | | | llvm-svn: 153189
* [asan] one more try to remove pthread.h from asan_interceptors.ccAlexey Samsonov2012-03-211-6/+6
| | | | llvm-svn: 153188
* [asan] add missing declarations from string.h and remove this headerAlexey Samsonov2012-03-211-1/+7
| | | | llvm-svn: 153187
* [asan] use extern declaraions of libc functions on Win and on MacAlexey Samsonov2012-03-211-22/+29
| | | | llvm-svn: 153186
* Put Is64BitMemOperand into !defined(NDEBUG) for now.Joerg Sonnenberger2012-03-211-0/+2
| | | | llvm-svn: 153185
* Use a signed value for this enum to avoid spuriuos warnings from gcc.Benjamin Kramer2012-03-212-2/+2
| | | | llvm-svn: 153184
* [asan]: remove signal.h system header from interceptorsAlexey Samsonov2012-03-211-1/+6
| | | | llvm-svn: 153183
* [asan]: substitute extern decls with system header in asan_mac.ccAlexey Samsonov2012-03-211-13/+3
| | | | llvm-svn: 153182
* [asan] merge mac-specific interceptors into one functionAlexey Samsonov2012-03-213-8/+5
| | | | llvm-svn: 153180
* [asan]: remove asan_mac.hAlexey Samsonov2012-03-215-104/+51
| | | | llvm-svn: 153179
* [asan]: start removing os-specific asan_mac.h - move inclusion of mac system ↵Alexey Samsonov2012-03-213-12/+20
| | | | | | header to asan_mac.cc llvm-svn: 153178
* [asan] Support for %z to Printf()Evgeniy Stepanov2012-03-218-60/+60
| | | | | | | | | | | | At the moment, asan internal Printf() uses %l modifier for printing values of size_t and related types. This works, because we control both the implementation of Printf and all its uses, but can be a little misleading. This change adds support for %z to Printf(). All callers that print sizes and pointers as integers are switched to %zu / %zx. llvm-svn: 153177
* Teach instsimplify to gracefully degrade in the presence of instructionsChandler Carruth2012-03-211-0/+6
| | | | | | | | | | | | | | | | not attched to a basic block or function. There are conservatively correct answers in these cases, and this makes the analysis more useful in contexts where we have a partially formed bit of IR. I don't have any way to test this directly... suggestions welcome here, but I'm not seeing anything sadly. I only found this using a subsequent patch to the inliner which runs instsimplify on partially inlined instructions, and even then only on a quite large program. I never got a reasonable testcase out of it, and anything I do get is likely to be quite fragile due to requiring an interaction of two different passes, and the only result being a segfault if it goes wrong. llvm-svn: 153176
* s/Printf/Report for libc interceptors (need this to debug the potential ↵Alexander Potapenko2012-03-211-1/+1
| | | | | | double interception) llvm-svn: 153175
* [python] Add some paths where to find test binaryAnders Waldenborg2012-03-211-0/+2
| | | | | | | Adds /usr/lib/debug early to list, as some systems (debian) have unstripped libs in there Adds /lib/i386-linux-gnu for systems that does multiarch (debian) llvm-svn: 153174
* [python] Mark get_test_binary as not being a testAnders Waldenborg2012-03-211-0/+1
| | | | | | | get_test_binary is a helper method, not a test, make sure nosetests doesn't pick it up as a test. llvm-svn: 153173
* lit/TestRunner.py: [Win32] Rework WinWaitReleased() again! "win32file" from ↵NAKAMURA Takumi2012-03-211-28/+41
| | | | | | | | | | | Python Win32 Extensions. We can simply confirm the handle released to open it with EXCLUSIVE. Attempting renaming was bad. Disable win32file at ImportError. Thanks to Francois to let me know. FIXME: Could we report warning or notification if win32file were not found? llvm-svn: 153172
* Finish organizing C API docs.Gregory Szorc2012-03-211-67/+194
| | | | | | | | | | Remaining "uncategorized" functions have been organized into their proper place in the hierarchy. Some functions were moved around so groups are defined together. No code changes were made. llvm-svn: 153169
* For the annals of subtle but terrible bugs: fix a longstanding bugJohn McCall2012-03-212-5/+31
| | | | | | | | | | | | | | | | | | | | in vtable layout where virtual methods inherited from virtual bases could be assigned the same vcall adjustment slot if they shared a name and parameter signature but differed in their cv-qualification. The code was already trying to handle this case, but unfortunately used the ordinary type qualifiers (which are always empty here) instead of the method qualifiers. This seems like something that the API should discourage, but I don't know how to carry that principle out in this instance. Eliminate this function's need for an ASTContext while we're at it. This bug affects the ABI, and fixing it brings us into accord with the Itanium ABI (and GCC's implementation of it), but, obviously, technically breaks full compatibility with previous releases of Clang. Just letting you know. llvm-svn: 153168
* clang-interpreter/Makefile: [PR12313] Update USEDLIBS to add clangEdit.NAKAMURA Takumi2012-03-211-1/+2
| | | | llvm-svn: 153167
* Fix generation of the address size override prefix. Add assertions forJoerg Sonnenberger2012-03-212-5/+64
| | | | | | | the invalid cases. At least 16bit operand in 64bit mode is currently not rejected in the parser. llvm-svn: 153166
* I meant to disable this test, not XFAIL itAndrew Trick2012-03-211-2/+2
| | | | llvm-svn: 153165
* Fixed the ability to load a module from a path by using just a UUID. AfterGreg Clayton2012-03-212-26/+30
| | | | | | | | | the migration to ModuleSpec objects this broke and is now fixed. Also fixed a case in the darwin kernel dynamic loader where we just need to trust the load address of the kernel if we can't read it from memory. llvm-svn: 153164
* misched: beginning to add unit testsAndrew Trick2012-03-211-0/+20
| | | | llvm-svn: 153163
* misched: fix LiveInterval update for bottom-up schedulingAndrew Trick2012-03-211-3/+13
| | | | llvm-svn: 153162
* misched: trace LiveIntervals after scheduling.Andrew Trick2012-03-211-0/+1
| | | | llvm-svn: 153161
* misched: obvious iterator update fixes for bottom-up.Andrew Trick2012-03-211-0/+6
| | | | llvm-svn: 153160
* misched: cleanup main loopAndrew Trick2012-03-211-10/+14
| | | | llvm-svn: 153159
* misched: fix LI update for bottom-up.Andrew Trick2012-03-211-1/+7
| | | | llvm-svn: 153158
* Organize LLVM C API docs into doxygen modules; add docsGregory Szorc2012-03-2116-109/+1622
| | | | | | | | | | | | | | | | This gives a lot of love to the docs for the C API. Like Clang's documentation, the C API is now organized into a Doxygen "module" (LLVMC). Each C header file is a child of the main module. Some modules (like Core) have a hierarchy of there own. The produced documentation is thus better organized (before everything was in one monolithic list). This patch also includes a lot of new documentation for APIs in Core.h. It doesn't document them all, but is better than none. Function docs are missing @param and @return annotation, but the documentation body now commonly provides help details (like the expected llvm::Value sub-type to expect). llvm-svn: 153157
* RewriteModernObjC.cpp: Don't expose temporary std::string with StringRef. ↵NAKAMURA Takumi2012-03-211-1/+1
| | | | | | (StringRef)getName() can be used here. llvm-svn: 153156
* Add typecast to silence -Wswitch warning introduced by r153153.Craig Topper2012-03-211-1/+1
| | | | llvm-svn: 153155
* Spacing fixes and using 'unsigned' instead of 'int' to index to select ↵Craig Topper2012-03-211-28/+29
| | | | | | shuffle elements for consistency with other shuffle code in X86 backend. llvm-svn: 153154
* Incremental big endian patch by Jack Carter.Akira Hatanaka2012-03-213-13/+75
| | | | | | | | These changes allow us to compile big endian from the command line for 32 bit Mips targets. This patch will result in code and data actually being produced in the correct endianess. llvm-svn: 153153
* Test case for rdar://problem/11055105, a bug with the instantiationJohn McCall2012-03-211-1/+14
| | | | | | | | of references to function template parameters in noexcept clauses when the instantiation is forced from a point during parsing when a block is in scope. llvm-svn: 153152
* Close the paren.Fariborz Jahanian2012-03-211-2/+2
| | | | | | // rdar://11076938 llvm-svn: 153151
* Zap some dead code pointed out by Chandler.Eric Christopher2012-03-201-4/+0
| | | | llvm-svn: 153150
* Update comment.Eric Christopher2012-03-201-2/+1
| | | | llvm-svn: 153149
* Make sure ImmutableSet never inserts Tombstone/Entry into DenseMap.Anna Zaks2012-03-201-2/+7
| | | | | | | | | | | | ImmutAVLTree uses random unsigned values as keys into a DenseMap, which could possibly happen to be the same value as the Tombstone or Entry keys in the DenseMap. Test case is hard to come up with. We randomly get failures on the internal static analyzer bot, which most likely hits this issue (hard to be 100% sure without the full stack). llvm-svn: 153148
* RuntimeDyldMachO has the ability to keep track ofSean Callanan2012-03-202-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | relocations (i.e., pieces of data whose addresses are referred to elsewhere in the binary image) and update the references when the section containing the relocations moves. The way this works is that there is a map from section IDs to lists of relocations. Because the relocations are associated with the section containing the data being referred to, they are updated only when the target moves. However, many data references are relative and also depend on the location of the referrer. To solve this problem, I introduced a new data structure, Referrer, which simply contains the section being referred to and the index of the relocation in that section. These referrers are associated with the source containing the reference that needs to be updated, so now regardless of which end of the relocation moves, the relocation will now be updated correctly. llvm-svn: 153147
* numberWithFloat -> numberWithDouble.Patrick Beard2012-03-201-2/+2
| | | | llvm-svn: 153146
* modern objective-c translator: insert couple of pragmas for optimization.Fariborz Jahanian2012-03-201-0/+4
| | | | | | // rdar://11079898 llvm-svn: 153145
* Fixed typo.Patrick Beard2012-03-201-1/+1
| | | | llvm-svn: 153142
* Added summary section for Object Literals and Subscripting, which contains ↵Patrick Beard2012-03-201-1/+7
| | | | | | the external link. llvm-svn: 153141
OpenPOWER on IntegriCloud