summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [docs] [tblgen] There is no "code" type.Sean Silva2014-02-091-5/+0
| | | | | | Code fragments are just fancy string literals. llvm-svn: 201034
* [docs] TableGen easter egg: Multiline string literalsSean Silva2014-02-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | They're called code fragments, but they are really multiline string literals. Just spotted this usage in a patch by Aaron using "code fragments" for holding documentation text. I remember someone bemoaning the lack of multiline string literals in TableGen, so I'm explicitly documenting that code fragments are multiline string literals. Let it be known that any use case needing multiline string literals in TableGen (such as descriptions of options, or whatnot) can use use code fragments (instead of C-style string concatenation or exceedingly long lines). E.g. class Bar<int n>; class Baz<int n>; class Doc<string desc> { string Desc = desc; } def Foo : Bar<1>, Baz<3>, Doc<[{ This Foo is a Bar, and also a Baz. It can take 3 values: * Qux * Quux * Quuux }]>; llvm-svn: 201033
* tools: explicitly cast to avoid a warningSaleem Abdulrasool2014-02-091-1/+1
| | | | llvm-svn: 201032
* PR16519, PR18009: When checking a partial specialization for uses of its ownRichard Smith2014-02-093-31/+156
| | | | | | | | | | template parameters, don't look for parameters of outer templates. If a problem is found in a default template argument, point the diagnostic at the partial specialization (with a note pointing at the default argument) instead of pointing it at the default argument and leaving it unclear which partial specialization os problematic. llvm-svn: 201031
* tools: handle out-of-line personality 0 decodingSaleem Abdulrasool2014-02-081-1/+1
| | | | | | | | In some cases it is possible to have a personality 0 unwinding opcodes in the extab (such as when .handlerdata is used in the assembly). Simply decode the 3 opcodes for that case. llvm-svn: 201030
* ARM: change attribute tests to use parsed formSaleem Abdulrasool2014-02-0828-525/+640
| | | | | | | | | This makes the tests more readable by using the -arm-attributes decoding support in llvm-readobj since that is now available. Change the invocation commands to be similar to other test and use a more precise triple (the tests only require ARM EABI support). llvm-svn: 201029
* LoopVectorizer: Keep track of conditional store basic blocksArnold Schwaighofer2014-02-082-0/+44
| | | | | | | | | | | | | Before conditional store vectorization/unrolling we had only one vectorized/unrolled basic block. After adding support for conditional store vectorization this will not only be one block but multiple basic blocks. The last block would have the back-edge. I updated the code to use a vector of basic blocks instead of a single basic block and fixed the users to use the last entry in this vector. But, I forgot to add the basic blocks to this vector! Fixes PR18724. llvm-svn: 201028
* hostname is guarantee to never be null in this branch.Jean-Daniel Dupas2014-02-081-1/+1
| | | | llvm-svn: 201027
* Fix null dereference if address is NULL.Jean-Daniel Dupas2014-02-081-3/+1
| | | | llvm-svn: 201026
* Pass the Mangler by reference.Rafael Espindola2014-02-0825-101/+103
| | | | | | | It is never null and it is not used in casts, so there is no reason to use a pointer. This matches how we pass TM. llvm-svn: 201025
* Only set EL_PROMPT_ESC when existing - fix typoSylvestre Ledru2014-02-081-1/+1
| | | | llvm-svn: 201024
* Only set EL_PROMPT_ESC when existingSylvestre Ledru2014-02-081-0/+2
| | | | llvm-svn: 201023
* Add LLVM_OVERRIDE to a few declarations.Rafael Espindola2014-02-089-101/+119
| | | | llvm-svn: 201022
* Fix for PR18735 - self-assignment for map/multimap gives incorrect results ↵Marshall Clow2014-02-0810-20/+171
| | | | | | in C++03 llvm-svn: 201021
* type_info objects are not unnamed_addr: the ABI requires us toJohn McCall2014-02-0815-170/+177
| | | | | | | | | | unique them and permits the implementation of dynamic_cast (and anything else which knows it's working with a complete class type) to compare their addresses directly. rdar://16005328 llvm-svn: 201020
* Move the -fms-compatibility using decl check after real access checkingReid Kleckner2014-02-082-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This avoids false positives from -Wmicrosoft when name lookup would normally succeed in standard C++. This triggered on a common CRTP pattern in clang, where a derived class would have a private using decl to pull in members of a dependent base: class Verifier : InstVisitor<Verifier> { private: using InstVisitor<Verifier>::visit; ... void anything() { visit(); // warned here } }; Real access checks pass here because we're in the context of the Verifier, but the -Wmicrosoft extension was just looking for the private access specifier. Reviewers: rsmith CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2679 llvm-svn: 201019
* PR18581: Attempt to complete the type in a VLA declaration before checkingRichard Smith2014-02-082-0/+15
| | | | | | whether it's POD. llvm-svn: 201018
* clang-cl: Alias /Zi and /Z7 to -gline-tables-onlyReid Kleckner2014-02-081-2/+3
| | | | | | | LLVM only knows how to emit Z7-style line tables on -win32, so there's no reason for clang to emit anything other than line info. llvm-svn: 201017
* Add throw() specifiers to more redeclarations of operator delete and ↵Nick Lewycky2014-02-083-6/+6
| | | | | | operator delete[]. llvm-svn: 201016
* Stick to C++98 for this.Nick Lewycky2014-02-082-6/+6
| | | | llvm-svn: 201015
* Update these declarations of operator delete (and delete[]) to have noexcept,Nick Lewycky2014-02-082-10/+16
| | | | | | | as required per core issue 1552 and warned about with -Wimplicit-exception-spec-mismatch. llvm-svn: 201014
* MS ABI: Use the most recent decl to check the inheritance modelReid Kleckner2014-02-082-3/+8
| | | | | | This was crashing compilation of DeclContext::buildLookupImpl<>. llvm-svn: 201013
* Fix lifetime issue causing buildbot failures.Richard Smith2014-02-081-2/+2
| | | | llvm-svn: 201012
* Remove the -fhidden-weak-vtables -cc1 option. It was dead,John McCall2014-02-0814-186/+30
| | | | | | gross, and increasingly replaced through other mechanisms. llvm-svn: 201011
* ASTUnit: remove dead code in remapping filesDmitri Gribenko2014-02-082-76/+23
| | | | | | | ASTUnit contains code to remap files to other files on disk. This code is not used. We only remap files to MemoryBuffers. llvm-svn: 201010
* [Constant Hoisting] Fix insertion point for constant materialization.Juergen Ributzka2014-02-082-18/+43
| | | | | | | | | | The bitcast instruction during constant materialization was not placed correcly in the presence of phi nodes. This commit fixes the insertion point to be in the idom instead. This fixes PR18768 llvm-svn: 201009
* [Constant Hoisting] Don't update the use list while traversing it - DOH!Juergen Ributzka2014-02-081-5/+16
| | | | | | | | This fix first traverses the whole use list of the constant expression and keeps track of the instructions that need to be updated. Then perform the fixup afterwards. llvm-svn: 201008
* [analyzer] Objective-C object literals are always non-nil.Jordan Rose2014-02-083-7/+50
| | | | | | <rdar://problem/15999214> llvm-svn: 201007
* Remove dead code.Rafael Espindola2014-02-071-4/+0
| | | | llvm-svn: 201006
* Added a test case for variables in registers, withSean Callanan2014-02-073-0/+120
| | | | | | | | clang -O1. <rdar://problem/15767528> llvm-svn: 201005
* Improve existing visualizers by:Nikola Smiljanic2014-02-071-58/+46
| | | | | | | | | | - Properly displaying non null terminated StringRef. - Auto expanding pointer types. - Displaying real type names for PointerUnions. - Using "size" and "capacity" across all containers. - Simplifying code where possible. llvm-svn: 201004
* Modified ObjectFile::SetLoadAddress() to now be:Greg Clayton2014-02-0712-49/+138
| | | | | | | | | | | | | | ObjectFile::SetLoadAddress (Target &target, lldb::addr_t value, bool value_is_offset); Now "value" is a slide if "value_is_offset" is true, and "value" is an image base address otherwise. All previous usage of this API was using slides. Updated the ObjectFileELF and ObjectFileMachO SetLoadAddress methods to do the right thing. Also updated the ObjectFileMachO::SetLoadAddress() function to not load __LINKEDIT when it isn't needed and to only load sections that belong to the executable object file. llvm-svn: 201003
* PR16638, DR1552: the exception specification on an implicitly-declaredRichard Smith2014-02-073-12/+19
| | | | | | | | | | | 'operator delete' or 'operator delete[]' is an explicit exception specification. Therefore we should diagnose 'void operator delete(void*)' instead of 'void operator delete(void*) noexcept'. This diagnostic remains an ExtWarn, since in practice people don't always include the exception specification in such a declaration. llvm-svn: 201002
* Comment cleanup. Don't repeat the function name in the comment.Rafael Espindola2014-02-071-18/+16
| | | | llvm-svn: 201001
* Fold together two repeated identical 'if's.Richard Smith2014-02-071-7/+5
| | | | llvm-svn: 201000
* Comment cleanup. Don't repeat the function name in the comment.Rafael Espindola2014-02-071-29/+26
| | | | llvm-svn: 200999
* Remove training whitespace.Rafael Espindola2014-02-071-12/+12
| | | | llvm-svn: 200998
* Now that the command interpreter runs in a separate thread in Xcode, we need ↵Greg Clayton2014-02-071-7/+1
| | | | | | | | | | | | | to lock the target API lock instead of trying to lock it. What was happening was: 1 - Xcode ran and stopped and was doing work on thread 2 2 - Users would type something in Xcode console on thread 1 3 - thread 3 would be running command interpreter thread and try to execute command but get "failed to get API lock" error for any command that wanted the target API lock (like "expression") <rdar://problem/15775016> llvm-svn: 200997
* <rdar://problem/12857181>Enrico Granata2014-02-071-1/+34
| | | | | | | | | | | | When a user says type formatter add ... unsigned int he most probably means to deal with the "unsigned int" type. However, given how the LLDB command parser works, that command will try to add the formatter to the TWO types 'unsigned' AND 'int' Since this is unlikely to be what the user wants, warn about it, and suggest they can use quotes to override the debugger's understanding llvm-svn: 200996
* Add conditional breakpoints to our cheat sheetEnrico Granata2014-02-071-0/+12
| | | | llvm-svn: 200995
* Always create a temporary symbol to use with the cfi frame.Rafael Espindola2014-02-072-15/+11
| | | | | | | This is a small simplification and a small step in fixing pr18743 since private functions on MachO should be using a 'l' prefix. llvm-svn: 200994
* Avoid signed vs unsigned compare warnings. From Dimitry Andric.Joerg Sonnenberger2014-02-071-4/+4
| | | | llvm-svn: 200993
* Use FileCheck variables to simplify this test.Rafael Espindola2014-02-071-46/+28
| | | | llvm-svn: 200992
* When writing data back into a register, acceptSean Callanan2014-02-071-1/+1
| | | | | | | values whose size differs from the register's size. llvm-svn: 200991
* Fix Darwin bots from EHABI changeRenato Golin2014-02-071-2/+1
| | | | llvm-svn: 200990
* R600/SI: Add failing test for 3 x i64 vectors.Matt Arsenault2014-02-071-0/+28
| | | | | | | Stores of <4 x i64> do work (although they do expand to 4 stores instead of 2), but 3 x i64 vectors fail to select. llvm-svn: 200989
* Remove -arm-disable-ehabi optionRenato Golin2014-02-075-20/+20
| | | | llvm-svn: 200988
* Fix test from r200979 on WindowsBen Langmuir2014-02-071-1/+1
| | | | | | | | | Hopefully the last tweak needed to get this test working everywhere. Remove matching of the prefix of sys_header.h, which was never the point of the test anyway. This avoids dealing with path separators. llvm-svn: 200987
* Objective-C. Revert patch r193003 for furtherFariborz Jahanian2014-02-072-45/+4
| | | | | | internal discussions. // rdar://16006401 llvm-svn: 200986
* Fix a bug where we will crash if we have a class "B" that is contained ↵Greg Clayton2014-02-071-0/+5
| | | | | | | | | inside a class "A" in the DWARF where "A" is a forward declaration. <rdar://problem/14673945> <rdar://problem/15682781> llvm-svn: 200985
OpenPOWER on IntegriCloud