summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Mechanical change moving all of the test statements away from a patternChandler Carruth2011-04-231-362/+362
| | | | | | | | that requires needless noise in every patch (due to numbers changing) or poorly grouped test cases in order to have strictly increasing numbers. This will make my subsequent patches much less ugly. =D llvm-svn: 130072
* Teach the AST reader and writer to preserve the __DEPRECATED bit inChandler Carruth2011-04-233-0/+6
| | | | | | | | | | | language options, and warn when reading an AST with a different value for the bit. There doesn't appear to be a good way to test this (commenting out similar other language options doesn't break anything) but if folks have suggestions on tests I'm happy to add them. llvm-svn: 130071
* Remove unused STL header includes.Jay Foad2011-04-2355-65/+0
| | | | llvm-svn: 130068
* Move all of the logic for __DEPRECATED to the driver based on commentsChandler Carruth2011-04-237-25/+28
| | | | | | from dgregor. llvm-svn: 130066
* "note" location of forward class used as receiver ofFariborz Jahanian2011-04-235-8/+12
| | | | | | | a 'deprecated' selector in the diagnostics for the selector. // rdar://9309223 llvm-svn: 130062
* Remove unnecessary const away cast in LateTemplateParserCallback.Francois Pichet2011-04-234-6/+6
| | | | llvm-svn: 130058
* Implement basic __is_trivial type-trait support, enough to close PR9472.Chandler Carruth2011-04-2313-0/+95
| | | | | | | | | | | | | | | | | | This introduces a few APIs on the AST to bundle up the standard-based logic so that programmatic clients have access to exactly the same behavior. There is only one serious FIXME here: checking for non-trivial move constructors and move assignment operators. Those bits need to be added to the declaration and accessors provided. This implementation should be enough for the uses of __is_trivial in libstdc++ 4.6's C++98 library implementation. Ideas for more thorough test cases or any edge cases missing would be appreciated. =D llvm-svn: 130057
* Sort the type traits in a few places where they weren't previouslyChandler Carruth2011-04-236-12/+12
| | | | | | sorted in order to prepare for adding some new ones. llvm-svn: 130056
* Fix Clang's __DEPRECATED define to be controled by -Wdeprecated. ThisChandler Carruth2011-04-237-1/+38
| | | | | | | | | | | | | | | | | | matches GCC behavior which libstdc++ uses to limit #warning-based messages about deprecation. The machinery involves threading this through a new '-fdeprecated-macro' flag for CC1. The flag defaults to "on", similarly to -Wdeprecated. We turn the flag off in the driver when the warning is turned off (modulo matching some GCC bugs). We record this as a language option, and key the preprocessor on the option when introducing the define. A separate flag rather than a '-D' flag allows us to properly represent the difference between C and C++ builds (only C++ receives the define), and it allows the specific behavior of following -Wdeprecated without potentially impacting the set of user-provided macro flags. llvm-svn: 130055
* Like the coding standards say, do not use "using namespace std".Jay Foad2011-04-233-6/+2
| | | | llvm-svn: 130054
* Silence an overzealous uninitialized variable warning from GCC.Benjamin Kramer2011-04-231-1/+1
| | | | llvm-svn: 130053
* GCC overloads -Wwrite-strings just to make it extra confusing. While itChandler Carruth2011-04-232-1/+5
| | | | | | | | | | | | | | | | changes language semantics in C and ObjC (which Clang has supported for a while), in C++ it's the name used for Clang's -Wdeprecated-writable-strings. Clang's name is at least less overloaded if still confusing (the string isn't writable, we just allow converting to a non-const pointer without warning), so I've left it in place and made the GCC name an alias for compatibility. With this I've implemented all the aspects of GCC's -Wwrite-strings I've encountered which didn't work with Clang. llvm-svn: 130052
* There were some frustrating problems with the implementation ofChandler Carruth2011-04-237-6/+27
| | | | | | | | | | | | | | | | | | | | -Wwrite-strings. First and foremost, once the positive form of the flag was passed, it could never be disabled by passing -Wno-write-strings. Also, the diagnostic engine couldn't in turn use -Wwrite-strings to control diagnostics (as GCC does) because it was essentially hijacked to drive the language semantics. Fix this by giving CC1 a clean '-fconst-strings' flag to enable const-qualified strings in C and ObjC compilations. Corresponding '-fno-const-strings' is also added. Then the driver is taught to introduce '-fconst-strings' in the CC1 command when '-Wwrite-strings' dominates. This entire flag is basically GCC-bug-compatibility driven, so we also match GCC's bug where '-w' doesn't actually disable -Wwrite-strings. I'm open to changing this though as it seems insane. llvm-svn: 130051
* Accidental function name mangling.Andrew Trick2011-04-231-1/+1
| | | | llvm-svn: 130050
* Thumb2 and ARM add/subtract with carry fixes.Andrew Trick2011-04-238-123/+147
| | | | | | | | | | | | | Fixes Thumb2 ADCS and SBCS lowering: <rdar://problem/9275821>. t2ADCS/t2SBCS are now pseudo instructions, consistent with ARM, so the assembly printer correctly prints the 's' suffix. Fixes Thumb2 adde -> SBC matching to check for live/dead carry flags. Fixes the internal ARM machine opcode mnemonic for ADCS/SBCS. Fixes ARM SBC lowering to check for live carry (potential bug). llvm-svn: 130048
* Comment edit.Andrew Trick2011-04-231-1/+2
| | | | llvm-svn: 130047
* whitespaceAndrew Trick2011-04-232-8/+8
| | | | llvm-svn: 130046
* Diagnose C++ abstract parameters for Objective-C methods.John McCall2011-04-232-11/+8
| | | | llvm-svn: 130045
* Fixed the SymbolContext::DumpStopContext() to correctly indent and dumpGreg Clayton2011-04-2324-142/+649
| | | | | | | | | | | | | | | | | inline contexts when the deepest most block is not inlined. Added source path remappings to the lldb_private::Target class that allow it to remap paths found in debug info so we can find source files that are elsewhere on the current system. Fixed disassembly by function name to disassemble inline functions that are inside other functions much better and to show enough context before the disassembly output so you can tell where things came from. Added the ability to get more than one address range from a SymbolContext class for the case where a block or function has discontiguous address ranges. llvm-svn: 130044
* Exhaust the cases.Argyrios Kyrtzidis2011-04-231-1/+2
| | | | llvm-svn: 130043
* Fix an assertion when code-completing, rdar://9288730 & http://llvm.org/PR9728.Argyrios Kyrtzidis2011-04-232-1/+15
| | | | llvm-svn: 130042
* Convert the rest of the test suite to use the lldbutil.get_description() ↵Johnny Chen2011-04-234-22/+15
| | | | | | utility function. llvm-svn: 130041
* docs: Introduce cascading style <div> and <p> continued on <h[2-5]>.NAKAMURA Takumi2011-04-2352-1569/+1632
| | | | | | | | | | | | | | | | | <h2>Section Example</h2> <div> <!-- h2+div is applied --> <p>Section preamble.</p> <h3>Subsection Example</h3> <p> <!-- h3+p is applied --> Subsection body </p> <!-- End of section body --> </div> FIXME: Care H5 better. llvm-svn: 130040
* test/CodeGen/X86/shrink-compare.ll: Relax expressions for Win64.NAKAMURA Takumi2011-04-231-2/+2
| | | | llvm-svn: 130039
* Add a simple utility function get_description(lldb_obj, option=None) to ↵Johnny Chen2011-04-232-7/+26
| | | | | | | | lldbutil.py and use it from TestTargetAPI.py. llvm-svn: 130038
* Tie debug information for method declaration with debug information for ↵Devang Patel2011-04-233-3/+42
| | | | | | method definition. llvm-svn: 130037
* Don't allow reinterpret_cast to reference of vector element and property ↵Argyrios Kyrtzidis2011-04-223-6/+18
| | | | | | expression. Thanks goes to Eli Friedman! llvm-svn: 130036
* Fix up how the ValueObjects manage their life cycle so that you can hand out ↵Jim Ingham2011-04-2225-210/+528
| | | | | | | | | a shared pointer to a ValueObject or any of its dependent ValueObjects, and the whole cluster will stay around as long as that shared pointer stays around. llvm-svn: 130035
* Teach libclang to be more careful around BlockDecls, and don't assumeDouglas Gregor2011-04-221-2/+3
| | | | | | | that a TypeSourceInfo is always available, like we do everywhere else in libclang. Fixes <rdar://problem/9311140>. llvm-svn: 130034
* Teach FastISel to deal with instructions that have two immediate operands.Owen Anderson2011-04-222-11/+33
| | | | llvm-svn: 130033
* don't warn about empty macro arguments in c++'0x mode, since it sucked inChris Lattner2011-04-221-2/+2
| | | | | | the c99 preprocessor. Patch by Jonathan Sauer! llvm-svn: 130031
* Correctly emit a diagnostic for multiple templated function definitions in ↵Francois Pichet2011-04-225-21/+35
| | | | | | -flate-template-parsing mode. llvm-svn: 130030
* Add test cases for the SBTarget.GetDescription() API which takes an extra ↵Johnny Chen2011-04-221-0/+36
| | | | | | lldb::DescriptionLevel enum. llvm-svn: 130029
* Let front-end tie subprogram declaration with subprogram definition directly.Devang Patel2011-04-225-48/+67
| | | | llvm-svn: 130028
* Fix comment.Eric Christopher2011-04-221-3/+3
| | | | llvm-svn: 130027
* Always compare the cost of region splitting with the cost of per-block ↵Jakob Stoklund Olesen2011-04-221-6/+45
| | | | | | | | splitting. Sometimes it is better to split per block, and we missed those cases. llvm-svn: 130025
* reinterpret_cast to reference of a bit-field is not allowed.Argyrios Kyrtzidis2011-04-223-0/+14
| | | | | | Fixes rdar://9202628 & http://llvm.org/PR9564. llvm-svn: 130024
* At the end of the translation unit, defining a vtable can introduceDouglas Gregor2011-04-225-19/+62
| | | | | | | | new templates that need to be instantiated and vice-versa. Iterate until we've instantiated all required templates and defined all required vtables. Fixed PR9325 / <rdar://problem/9055177>. llvm-svn: 130023
* Add -fdelayed-template-parsing option. Using this option all templated ↵Francois Pichet2011-04-2220-7/+369
| | | | | | | | | function definitions are parsed at the end of the translation unit only if it is required by an actual instantiation. As such all the symbols of the TU are available during name lookup. Using this flag is necessary for compatibility with Microsoft template code. This also provides some parsing speed improvement. llvm-svn: 130022
* The .inc file is auto-generated and must not be edited by hand.Mikhail Glushenkov2011-04-221-1/+1
| | | | llvm-svn: 130021
* Fixes an instance method meta-data generation bug inFariborz Jahanian2011-04-2210-30/+70
| | | | | | | | | | | ObjC NeXt runtime where method pointer registered in metadata belongs to an unrelated method. Ast part of this fix, I turned at @end missing warning (for class implementations) into an error as we can never be sure that meta-data being generated is correct. // rdar://9072317 llvm-svn: 130019
* Recommit the fix for rdar://9289512 with a couple tweaks toChris Lattner2011-04-224-18/+113
| | | | | | | | | | | fix bugs exposed by the gcc dejagnu testsuite: 1. The load may actually be used by a dead instruction, which would cause an assert. 2. The load may not be used by the current chain of instructions, and we could move it past a side-effecting instruction. Change how we process uses to define the problem away. llvm-svn: 130018
* We are only interested in logging the child's output to sys.stdout.Johnny Chen2011-04-221-1/+1
| | | | llvm-svn: 130017
* Fix comment.Johnny Chen2011-04-221-1/+1
| | | | llvm-svn: 130016
* Make test_connect_remote() more robust by waiting on the server ready messageJohnny Chen2011-04-222-9/+19
| | | | | | | | | before issuing the 'process connect ...' command. test_comand_regex(): assign the spawned child to self.child so it gets automatically shutdown during TestBase.tearDown(self). llvm-svn: 130015
* Reroute the blog link to the LLVM blog site.Greg Clayton2011-04-222-129/+1
| | | | llvm-svn: 130014
* Erase from a string instead of using substr when you don't really need to.Greg Clayton2011-04-221-1/+1
| | | | llvm-svn: 130013
* Workaround buildbot failure by hacking up this test to emit llvm IR.Bob Wilson2011-04-221-2/+2
| | | | | | This is not a real fix. It needs some checks to make sure the IR is correct. llvm-svn: 130012
* Fix a typo.Johnny Chen2011-04-221-1/+1
| | | | llvm-svn: 130011
* Do not return true from MergeFunctionDecl for a warn_static_non_static ↵Francois Pichet2011-04-221-6/+8
| | | | | | warning in Microsoft mode. llvm-svn: 130010
OpenPOWER on IntegriCloud