summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use the AttributeSet instead of AttributeWithIndex.Bill Wendling2013-01-271-25/+18
| | | | | | | In the future, AttributeWithIndex won't be used anymore. Besides, it exposes the internals of the AttributeSet to outside users, which isn't goodness. llvm-svn: 173602
* Use the AttributeSet instead of AttributeWithIndex.Bill Wendling2013-01-271-22/+15
| | | | | | | In the future, AttributeWithIndex won't be used anymore. Besides, it exposes the internals of the AttributeSet to outside users, which isn't goodness. llvm-svn: 173601
* Use the AttributeSet instead of AttributeWithIndex.Bill Wendling2013-01-271-27/+15
| | | | | | | In the future, AttributeWithIndex won't be used anymore. Besides, it exposes the internals of the AttributeSet to outside users, which isn't goodness. llvm-svn: 173600
* Convert the CPP backend to use the AttributeSet instead of AttributeWithIndex.Bill Wendling2013-01-271-26/+37
| | | | | | Further removal of the introspective AttributeWithIndex thing. Also fix the #includes. llvm-svn: 173599
* Use the AttributeSet instead of AttributeWithIndex object.Bill Wendling2013-01-271-3/+2
| | | | llvm-svn: 173598
* Add the missing line return to align parameters of printPretty.Michael Han2013-01-271-1/+1
| | | | llvm-svn: 173597
* Make sure that multi-line expressions don't create a default target. We ↵Greg Clayton2013-01-261-4/+9
| | | | | | recently switched to using a built-in m_exe_ctx when running commands in the DoExecute() so that we can have common code where commands can required having a valid target/process/thread/frame by specifying flags, this caused multi-line expression to always create a new dummy target because m_exe_ctx gets cleared when DoExecute exits. A new input reader has been pushed to handle the input for the expression, which will get popped off and then it was checking the target in m_exe_ctx (which was cleared). llvm-svn: 173596
* libclang: refactor CXStringPool: make it a classDmitri Gribenko2013-01-265-43/+48
| | | | | | | We are not exposing the pool or string buffers to libclang users, so no need to maintain a procedural interface. llvm-svn: 173595
* PR14566: Debug Info: avoid top level lexical blocks in functionsDavid Blaikie2013-01-269-17/+27
| | | | | | | | | | | | | | | One of the gotchas (see changes to CodeGenFunction) was due to the fix in r139416 (for PR10829). This only worked previously because the top level lexical block would set the location to the end of the function, the debug location would be updated (as per r139416), the location would be set to the end of the function again (but that would no-op, since it was the same as the previous location), then the return instruction would be emitted using the debug location. Once the top level lexical block was no longer emitted, the end-of-function location change was causing the debug loc to be updated, regressing that bug. llvm-svn: 173593
* PR14566: Debug Info: Removing top level lexical blocksDavid Blaikie2013-01-264-32/+83
| | | | | | | | | | This adds support for LLVM to accept metadata that doesn't include a top level lexical block in a function. Specifically LLVM couldn't handle this when there were file changes relating to these blocks. I've updated a few test cases to ensure other functionality (such as inlining) isn't affected by this change, but haven't pervasively updated all the test cases. llvm-svn: 173592
* IRBuilder: Remove redundant check around SetInstDebugLocation call.David Blaikie2013-01-261-2/+1
| | | | llvm-svn: 173591
* libclang: type safety for CXTranslationUnitImpl::CIdxDmitri Gribenko2013-01-264-6/+6
| | | | llvm-svn: 173590
* libclang: type safety for CXTranslationUnitImpl::FormatContextDmitri Gribenko2013-01-263-15/+10
| | | | llvm-svn: 173589
* libclang: some type safety for CXTranslationUnitImpl's internalsDmitri Gribenko2013-01-263-10/+13
| | | | | | | There is no reason to store pointers as 'void*' in CXTranslationUnitImpl, since it does not affect libclang ABI. llvm-svn: 173588
* Fix comment.Fariborz Jahanian2013-01-261-1/+1
| | | | llvm-svn: 173587
* Attach any tag type's documentation to its typedef ifFariborz Jahanian2013-01-262-3/+9
| | | | | | latter does not have one of its own. // rdar://13067629 llvm-svn: 173586
* libclang: factor out the frequent pattern static_cast<ASTUnit *>(TU->TUData)Dmitri Gribenko2013-01-2614-67/+72
| | | | | | into a getter cxtu::getASTUnit(TU) llvm-svn: 173585
* libclang: make getCursorParentDecl() return 'const Decl *'Dmitri Gribenko2013-01-263-4/+4
| | | | llvm-svn: 173584
* libclang: change getCursorAttr() to return 'const Attr *'Dmitri Gribenko2013-01-263-7/+7
| | | | llvm-svn: 173583
* Migrate tests to -verifyDmitri Gribenko2013-01-263-3/+7
| | | | llvm-svn: 173582
* Added ASTContext methods getIntPtrType and getUIntPtrType.Enea Zaffanella2013-01-262-0/+16
| | | | llvm-svn: 173581
* BBVectorize: Add a additional comment about the cost computationHal Finkel2013-01-261-0/+6
| | | | llvm-svn: 173580
* BBVectorize: Fix anomalous capital letter in commentHal Finkel2013-01-261-1/+1
| | | | llvm-svn: 173579
* <limits.h> includes <linux/limits.h> on Linux, no need to special-case itDmitri Gribenko2013-01-263-9/+3
| | | | llvm-svn: 173578
* libclang: make getCursorStmt() and getCursorExpr() return const pointersDmitri Gribenko2013-01-264-169/+180
| | | | | | Also change EnqueueVisitor to use ConstStmtVisitor as a consequence. llvm-svn: 173577
* Specify non-GNU-ARM triples for key-function test.Tim Northover2013-01-261-1/+2
| | | | | | | Since ARM has diverging ABIs on this detail, it's probably worth testing both it and a "normal" Itanium system. llvm-svn: 173576
* Constify getOptionalExplicitTemplateArgs()Dmitri Gribenko2013-01-261-3/+3
| | | | llvm-svn: 173575
* Constify some getters of DesignatedInitExprDmitri Gribenko2013-01-262-9/+12
| | | | llvm-svn: 173574
* lldX86_64ELFTarget depends on lldCore.Benjamin Kramer2013-01-261-0/+4
| | | | llvm-svn: 173573
* X86: Decode PALIGN operands so I don't have to do it in my head.Benjamin Kramer2013-01-265-1/+67
| | | | llvm-svn: 173572
* Documentation: fix syntax errorDmitri Gribenko2013-01-261-1/+1
| | | | | | Patch by David Waggoner llvm-svn: 173571
* Use proper delete.Michael J. Spencer2013-01-262-5/+5
| | | | llvm-svn: 173570
* X86: Do splat promotion later, so the optimizer can chew on it first.Benjamin Kramer2013-01-263-27/+17
| | | | | | | | | | | | This catches many cases where we can emit a more efficient shuffle for a specific mask or when the mask contains undefs. Once the splat is lowered to unpacks we can't do that anymore. There is a possibility of moving the promotion after pshufb matching, but I'm not sure if pshufb with a mask loaded from memory is faster than 3 shuffles, so I avoided that for now. llvm-svn: 173569
* FileCheckize and merge some tests.Benjamin Kramer2013-01-264-127/+227
| | | | llvm-svn: 173568
* Object/RelocVisitor: Add minimal support, R_MIPS_32, for mips.NAKAMURA Takumi2013-01-262-0/+18
| | | | | | It fixes llvm-dwarfdump for mips and mipsel. llvm-svn: 173567
* Object/RelocVisitor: Add minimal support, R_PPC64_ADDR32, for ppc64.NAKAMURA Takumi2013-01-261-0/+16
| | | | | | It fixes llvm-dwarfdump for ppc64-elf. llvm-svn: 173566
* RelocVisitor::visit(): Set hasError in the default path.NAKAMURA Takumi2013-01-261-0/+1
| | | | llvm-svn: 173565
* One more change of a uint32_t variable to offset_tJason Molenda2013-01-261-1/+1
| | | | | | | to match Greg's dataextractor patch, this one in some #if defined arm code. llvm-svn: 173564
* fix use of std::std. it's ordered set.Reed Kotler2013-01-261-3/+3
| | | | llvm-svn: 173563
* test/remove-cstr-calls/basic.cpp: Disable again on mingw. It behaves unstable.NAKAMURA Takumi2013-01-261-0/+1
| | | | llvm-svn: 173562
* clang/test/Misc/diag-template-diffing-color.cpp: Symbolize color sequences ↵NAKAMURA Takumi2013-01-261-14/+14
| | | | | | in FileCheck. llvm-svn: 173561
* Add comments showing the symbolic names for the exc_code types weJason Molenda2013-01-261-2/+2
| | | | | | receive with an EXC_BREAKPOINT mach exception on arm. llvm-svn: 173560
* [libclang] Introduce clang_getFileUniqueID which returns a structArgyrios Kyrtzidis2013-01-263-1/+35
| | | | | | | | | | | for a CXFile containing device/inode/modification time. Intended to be useful as a key associated with a unique file across an indexing session. rdar://13091837 llvm-svn: 173559
* clang/test/Misc/ast-dump-color.cpp: Symbolize color sequences in FileCheck.NAKAMURA Takumi2013-01-261-59/+59
| | | | | FIXME: If FileCheck had expressions something predefined well-known... llvm-svn: 173558
* [analyzer] C++ initializers may require cleanups; look through these.Jordan Rose2013-01-262-1/+31
| | | | | | | | | | | | | | When the analyzer sees an initializer, it checks if the initializer contains a CXXConstructExpr. If so, it trusts that the CXXConstructExpr does the necessary work to initialize the object, and performs no further initialization. This patch looks through any implicit wrapping expressions like ExprWithCleanups to find the CXXConstructExpr inside. Fixes PR15070. llvm-svn: 173557
* Give a more informative error message when the dot or arrow operator is usedRichard Trieu2013-01-263-3/+26
| | | | | | | on a type. Currently, it gives a generic "expected unqualified-id" error. The new error message is "cannot use (dot|arrow) operator on a type". llvm-svn: 173556
* Add "target.process.stop-on-shared-library-events" setting, and make it work.Jim Ingham2013-01-2622-14/+158
| | | | | | | | | | | Add the ability to give breakpoints a "kind" string, and have the StopInfoBreakpoint print that in the brief description if set. Also print the kind - if set - in the breakpoint listing. Give kinds to a bunch of the internal breakpoints. We were deleting the Mac OS X dynamic loader breakpoint as though the id we had stored away was a breakpoint site ID, but in fact it was a breakpoint id, so we never actually deleted it. Fixed that. llvm-svn: 173555
* Fix mismatch between pointer and pointee type when diagnosing an incorrectRichard Smith2013-01-262-3/+10
| | | | | | object argument type for a member call. llvm-svn: 173554
* Fix test case by being more lenient on what to accept as a path name.Richard Trieu2013-01-261-1/+1
| | | | llvm-svn: 173553
* DWARFDebugLine.cpp: Fix true path. Did you forget "return true" here?NAKAMURA Takumi2013-01-261-0/+2
| | | | llvm-svn: 173552
OpenPOWER on IntegriCloud