summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [mach-o] fix memory ownership in test caseNick Kledzik2013-11-071-14/+28
| | | | llvm-svn: 194187
* add debug logging to help figure out why some tests fail on some build botsNick Kledzik2013-11-071-0/+18
| | | | llvm-svn: 194186
* More duplicate code removal in <locale>. Hoist common parsing code into two ↵Marshall Clow2013-11-071-236/+54
| | | | | | templates: num_get::__do_get_signed and num_get::__do_get_unsigned, and make the do_get routines call them. No functionality change. llvm-svn: 194185
* Add the fact that Clang too is planning to start using C++11 (in someChandler Carruth2013-11-071-0/+16
| | | | | | | | | limited ways) after the next release. See the lengthy discussions (which are on-going) and the corresponding commit to LLVM's release notes. Nothing is actually changing at this point, this is just further spreading the plan. llvm-svn: 194184
* Add the fact that we anticipate switching to use (some subset of) C++11Chandler Carruth2013-11-071-0/+10
| | | | | | | | | after the 3.4 release to the release notes. See the *lengthy* llvmdev and cfe-dev threads on this subject. There will be more emails, discussion and announcements, but I want to make noise in as many places as I can to get everyone's concerns voiced and understood. llvm-svn: 194183
* This patch does a couple of things. Jim Ingham2013-11-0736-700/+415
| | | | | | | | | | | | | | | | | | | | | | It completes the job of using EvaluateExpressionOptions consistently throughout the inferior function calling mechanism in lldb begun in Greg's patch r194009. It removes a handful of alternate calls into the ClangUserExpression/ClangFunction/ThreadPlanCallFunction which were there for convenience. Using the EvaluateExpressionOptions removes the need for them. Using that it gets the --debug option from Greg's patch to work cleanly. It also adds another EvaluateExpressionOption to not trap exceptions when running expressions. You shouldn't use this option unless you KNOW your expression can't throw beyond itself. This is: <rdar://problem/15374885> At present this is only available through the SB API's or python. It fixes a bug where function calls would unset the ObjC & C++ exception breakpoints without checking whether they were set by somebody else already. llvm-svn: 194182
* [-fms-extensions] Add support for __FUNCDNAME__David Majnemer2013-11-069-0/+40
| | | | | | | | | | | | | | | | Summary: Similar to __FUNCTION__, MSVC exposes the name of the enclosing mangled function name via __FUNCDNAME__. This implementation is very naive and unoptimized, it is expected that __FUNCDNAME__ would be used rarely in practice. Reviewers: rnk, rsmith, thakis CC: cfe-commits, silvas Differential Revision: http://llvm-reviews.chandlerc.com/D2109 llvm-svn: 194181
* clang-cl: Hide ignored joined flags as wellAlp Toker2013-11-061-1/+1
| | | | | | This is an addendum to r194174. llvm-svn: 194180
* clang-format: Separate line-merging logic into its own class.Daniel Jasper2013-11-061-151/+164
| | | | | | No functional changes (intended). llvm-svn: 194179
* Disable a tooling test on Windows.Peter Collingbourne2013-11-061-0/+2
| | | | llvm-svn: 194178
* Hopefully fix latent bug where lldCore dependency on lldYAML was not in ↵Nick Kledzik2013-11-061-1/+4
| | | | | | CMake files llvm-svn: 194177
* Work around an MSVC 2013 miscompile with the Redeclarable class. Fixes PR16606Aaron Ballman2013-11-063-21/+32
| | | | llvm-svn: 194176
* Update \param in ToolInvocation() corresponding to r194164. [-Wdocumentation]NAKAMURA Takumi2013-11-061-1/+1
| | | | llvm-svn: 194175
* clang-cl: Hide ignored flagsAlp Toker2013-11-061-1/+1
| | | | | | We don't want to them to appear in the help text for now. llvm-svn: 194174
* [mach-o] fix EXPECT_EQ typesNick Kledzik2013-11-062-12/+12
| | | | llvm-svn: 194173
* [mach-o] add llvm_unreachableNick Kledzik2013-11-061-0/+1
| | | | llvm-svn: 194172
* [mach-o] fix DEBUG_WITH_TYPE to compile without warnings in non-debug caseNick Kledzik2013-11-061-17/+15
| | | | llvm-svn: 194171
* This patch modified ExeBasename as clang-cl.exe to match the preceding comment.Yaron Keren2013-11-061-1/+1
| | | | llvm-svn: 194170
* [mach-o] make unspecifiedPageZeroSize const to fix VC++ errorNick Kledzik2013-11-061-1/+1
| | | | llvm-svn: 194169
* [build] Update runtime library and tests to work with relocatable SDKs on OS ↵Daniel Dunbar2013-11-062-1/+30
| | | | | | X 10.9. llvm-svn: 194168
* [mach-o] binary reader and writer Nick Kledzik2013-11-0613-1552/+4049
| | | | | | | | | | This patch adds support for converting normalized mach-o to and from binary mach-o. It also changes WriterMachO (which previously directly wrote a mach-o binary given a set of Atoms) to instead do it in two steps. The first step uses normalizedFromAtoms() to convert Atoms to normalized mach-o, and the second step uses writeBinary() which to generate the mach-o binary file. llvm-svn: 194167
* rename local variable to avoid shadowing warningNick Kledzik2013-11-061-4/+4
| | | | llvm-svn: 194166
* clang-cl: Add /FS as an ignored flagAlp Toker2013-11-061-0/+1
| | | | | | | CMake-generated Makefiles include this cl flag which can be safely ignored until we get PDB server support. llvm-svn: 194165
* Introduce ClangTool::buildASTs, and buildASTFromCode.Peter Collingbourne2013-11-063-50/+232
| | | | | | | | | | | | | | | | | | | | | These allow clients to retrieve persistent AST objects (ASTUnits) which can be used in an ad-hoc manner after parsing. To accommodate this change, the code for processing a CompilerInvocation using a FrontendAction has been factored out to FrontendActionFactory, and a new base class, ToolAction, has been introduced, allowing the tool to do arbitrary things with each CompilerInvocation. This change was necessary because ASTUnit does not use the FrontendAction interface directly. This change also causes the FileManager in ClangTool to use shared ownership. This will become necessary because ASTUnit takes shared ownership of FileManager (ClangTool's FileManager is currently unused by ASTUnit; this is a FIXME). As shown in the tests, any client of ToolInvocation will need to be modified to use shared ownership for FileManager. Differential Revision: http://llvm-reviews.chandlerc.com/D2097 llvm-svn: 194164
* Spelling fix.Sean Callanan2013-11-061-1/+1
| | | | llvm-svn: 194163
* Fix diagnostic goof in r194161.Richard Smith2013-11-062-3/+3
| | | | llvm-svn: 194162
* Add a limit to the length of a sequence of 'operator->' functions we willRichard Smith2013-11-069-7/+96
| | | | | | | follow when building a class member access expression. Based on a patch by Rahul Jain! llvm-svn: 194161
* [PECOFF] Rename getSectionAlignment -> getSectionDefaultAlignment.Rui Ueyama2013-11-065-10/+14
| | | | | | | | These fields are for /align option. Section alignment can be set per-section basis with /section option too. In order to avoid name conflicts, rename the existing identifiers to become more specific. No functionality change. llvm-svn: 194160
* Added Iterable, a class that vends standard C++Sean Callanan2013-11-066-13/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iterators for LLDB's container data structures. Iterable abstracts over the backing data structure, ignoring keys for maps for example. It also provides locking as a service so that the code for (ThreadSP thread_sp : process->Threads()) { // ... use thread_sp } takes the appropriate locks once, without having to do anything else. The salient advantages of this system are: - Much simpler and idiomatic loop code - Lock once instead of each time an element is fetched - Less boilerplate to produce the iterators The intent is that Iterable will replace Get...AtIndex in most places, and that ForEach(), which solves the same problem in a less-idiomatic way, be phased out in favor of this approach. I've added Iterables to ThreadList, TypeList, and Process (which is really just forwarding to ThreadList). llvm-svn: 194159
* Fix the -cxx-abi microsoft -mconstructor-aliases combination.Rafael Espindola2013-11-062-2/+11
| | | | | | | | | | On the microsoft ABI clang is producing one weak_odr and one linkonce_odr destructor, which is reasonable since only one is required. The fix is simply to move the assert past the special case treatment of linkonce_odr. llvm-svn: 194158
* Thread safety analysis: minor bugfix to smart pointer handling, and expandedDeLesley Hutchins2013-11-062-10/+41
| | | | | | test case. llvm-svn: 194157
* Silencing some MSVC warnings about not all control paths returning a value ↵Aaron Ballman2013-11-061-0/+2
| | | | | | when they actually do. llvm-svn: 194156
* [asan] attempting to fix x32 build (see ↵Kostya Serebryany2013-11-064-32/+35
| | | | | | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59018) llvm-svn: 194155
* Fix several tuple bugs that were exposed by clang's implementation of CWG ↵Howard Hinnant2013-11-061-8/+19
| | | | | | 1402. This fixes http://llvm.org/bugs/show_bug.cgi?id=17798. llvm-svn: 194154
* R600: Fix LowerUDIVREMVincent Lejeune2013-11-062-9/+22
| | | | llvm-svn: 194153
* [AArch64] Remove NEON from "generic" CPU target.Amara Emerson2013-11-061-2/+1
| | | | | | | We can change this back when NEON support is complete and ready to become enabled by default. llvm-svn: 194152
* Fix an off-by-one error in basic_string::__grow_by, where it would ↵Marshall Clow2013-11-062-7/+37
| | | | | | incorrectly throw length_error (instead of bad_alloc) when attempting to resize the string to 'max_size()'. Add tests for resizing to max_size +/-1 llvm-svn: 194151
* [ASan] Use OS-specific matches in the malloc_context_size.cc lit test.Alexander Potapenko2013-11-061-8/+16
| | | | | | The top stack frames for operator new and operator delete are different on Linux and Darwin. llvm-svn: 194150
* Add DT_VERSYM dynamic table entry tag definition.Simon Atanasyan2013-11-061-0/+1
| | | | llvm-svn: 194149
* [SystemZ] Handle vectors in getSetCCResultTypeRichard Sandiford2013-11-062-5/+8
| | | | | | | I don't have a standalone testcase for this, but it should allow r193676 to be reapplied. llvm-svn: 194148
* Add test case for PR12377, it was fixed by r194116.Benjamin Kramer2013-11-061-4/+30
| | | | llvm-svn: 194147
* [llvm-c] Add parameter names in Target.h for C99 compliancePeter Zotov2013-11-061-21/+23
| | | | llvm-svn: 194146
* Implement gpword directive for mips, test case added. Stype changes using ↵Vladimir Medic2013-11-062-299/+314
| | | | | | clang-format are also included. llvm-svn: 194145
* Add newline at EOF in DynamicLibrary.cppPeter Zotov2013-11-061-1/+1
| | | | llvm-svn: 194144
* [llvm-c] Improve TargetMachine bindingsPeter Zotov2013-11-062-0/+59
| | | | | | Original patch by Chris Wailes llvm-svn: 194143
* [llvm-c] Specify explicit namespace in LLVMLoadLibraryPermanentlyPeter Zotov2013-11-061-1/+1
| | | | | | | Presence of using namespace llvm depended on several #ifdef's, and this broke the build on mswin32. llvm-svn: 194142
* [llvm-c] Correctly check for existence of native AsmParser, AsmPrinter, ↵Peter Zotov2013-11-061-6/+6
| | | | | | | | Disassembler Also, properly name the functions. llvm-svn: 194141
* [llvm-c] Add functions for initializing native AsmPrinter, AsmParser & ↵Peter Zotov2013-11-061-0/+36
| | | | | | | | Disassembler Original patch by Chris Wailes llvm-svn: 194140
* [llvm-c] Expose LLVMLoadLibraryPermanentlyPeter Zotov2013-11-062-0/+45
| | | | | | Original patch by Chris Wailes llvm-svn: 194139
* [OCaml] Impement Llvm_irreader, bindings to LLVM assembly parserPeter Zotov2013-11-067-1/+185
| | | | llvm-svn: 194138
OpenPOWER on IntegriCloud