NAKAMURA Takumi
69b664dfd7
Revert r173586 (and r173587) , "Attach any tag type's documentation to its typedef if"
...
It caused unexpected warnings with @tparam.
llvm-svn: 173614
2013-01-27 11:09:41 +00:00
Bill Wendling
f5c1f555cb
Fix miscompile. Add back the use of the ArrayRef version of the ::get method.
...
llvm-svn: 173613
2013-01-27 10:28:39 +00:00
Bill Wendling
a05f97c6e5
Rearrange some deckchairs. Moving the class before it's use.
...
llvm-svn: 173612
2013-01-27 10:00:13 +00:00
Bill Wendling
993604c747
Remove dead methods.
...
llvm-svn: 173611
2013-01-27 09:55:44 +00:00
Chandler Carruth
329b590e6e
Re-revert r173342, without losing the compile time improvements, flat
...
out bug fixes, or functionality preserving refactorings.
llvm-svn: 173610
2013-01-27 06:42:03 +00:00
Michael Gottesman
5300cdd8f2
Renamed function IsPotentialUse to IsPotentialRetainableObjPtr.
...
This name change does the following:
1. Causes the function name to use proper ARC terminology.
2. Makes it clear what the function truly does.
llvm-svn: 173609
2013-01-27 06:19:48 +00:00
Bill Wendling
a7a55ee2fc
Fix test to not use the AttributeSet's AttributeWithIndex creation method.
...
llvm-svn: 173608
2013-01-27 03:39:10 +00:00
Bill Wendling
53e191b2bc
Hide the method that creates an AttributeSet with AttributeWithIndexes.
...
This method will go away once AttributeWithIndex goes away. In the meantime,
hide it from general use.
llvm-svn: 173607
2013-01-27 03:35:32 +00:00
Bill Wendling
4d3491cbea
Use the AttributeSet instead of AttributeWithIndex.
...
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: 173606
2013-01-27 03:25:05 +00:00
Bill Wendling
290d952bb4
Use the AttributeSet instead of AttributeWithIndex.
...
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: 173605
2013-01-27 02:46:53 +00:00
Bill Wendling
f5075a4fe0
Use the AttributeSet instead of AttributeWithIndex.
...
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: 173603
2013-01-27 02:24:02 +00:00
Bill Wendling
3575c8c6d6
Use the AttributeSet instead of AttributeWithIndex.
...
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
2013-01-27 02:08:22 +00:00
Bill Wendling
37a52df920
Use the AttributeSet instead of AttributeWithIndex.
...
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
2013-01-27 01:57:28 +00:00
Bill Wendling
6eaab61bb5
Use the AttributeSet instead of AttributeWithIndex.
...
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
2013-01-27 01:44:34 +00:00
Bill Wendling
cc1fc9465b
Convert the CPP backend to use the AttributeSet instead of AttributeWithIndex.
...
Further removal of the introspective AttributeWithIndex thing. Also fix the #includes.
llvm-svn: 173599
2013-01-27 01:22:51 +00:00
Bill Wendling
71173cb7dc
Use the AttributeSet instead of AttributeWithIndex object.
...
llvm-svn: 173598
2013-01-27 00:36:48 +00:00
Michael Han
38d96ab6f5
Add the missing line return to align parameters of printPretty.
...
llvm-svn: 173597
2013-01-27 00:06:24 +00:00
Greg Clayton
ba7b8e2c8c
Make sure that multi-line expressions don't create a default target. We 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
2013-01-26 23:54:29 +00:00
Dmitri Gribenko
b95b3f128b
libclang: refactor CXStringPool: make it a class
...
We are not exposing the pool or string buffers to libclang users, so no need to
maintain a procedural interface.
llvm-svn: 173595
2013-01-26 22:44:19 +00:00
David Blaikie
0a21d0da17
PR14566: Debug Info: avoid top level lexical blocks in functions
...
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
2013-01-26 22:16:26 +00:00
David Blaikie
9f4b70dde0
PR14566: Debug Info: Removing top level lexical blocks
...
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
2013-01-26 21:55:23 +00:00
David Blaikie
18a7776b93
IRBuilder: Remove redundant check around SetInstDebugLocation call.
...
llvm-svn: 173591
2013-01-26 21:55:19 +00:00
Dmitri Gribenko
183436e5b6
libclang: type safety for CXTranslationUnitImpl::CIdx
...
llvm-svn: 173590
2013-01-26 21:49:50 +00:00
Dmitri Gribenko
ba82fea336
libclang: type safety for CXTranslationUnitImpl::FormatContext
...
llvm-svn: 173589
2013-01-26 21:39:50 +00:00
Dmitri Gribenko
d36209e308
libclang: some type safety for CXTranslationUnitImpl's internals
...
There is no reason to store pointers as 'void*' in CXTranslationUnitImpl, since
it does not affect libclang ABI.
llvm-svn: 173588
2013-01-26 21:32:42 +00:00
Fariborz Jahanian
0ea5183fd7
Fix comment.
...
llvm-svn: 173587
2013-01-26 20:50:23 +00:00
Fariborz Jahanian
6522ad6e77
Attach any tag type's documentation to its typedef if
...
latter does not have one of its own. // rdar://13067629
llvm-svn: 173586
2013-01-26 20:49:30 +00:00
Dmitri Gribenko
c22ea1ce88
libclang: factor out the frequent pattern static_cast<ASTUnit *>(TU->TUData)
...
into a getter cxtu::getASTUnit(TU)
llvm-svn: 173585
2013-01-26 18:53:38 +00:00
Dmitri Gribenko
a169118854
libclang: make getCursorParentDecl() return 'const Decl *'
...
llvm-svn: 173584
2013-01-26 18:12:08 +00:00
Dmitri Gribenko
e4baea61b5
libclang: change getCursorAttr() to return 'const Attr *'
...
llvm-svn: 173583
2013-01-26 18:08:08 +00:00
Dmitri Gribenko
5a7ae8dc18
Migrate tests to -verify
...
llvm-svn: 173582
2013-01-26 17:11:39 +00:00
Enea Zaffanella
f11ceb6897
Added ASTContext methods getIntPtrType and getUIntPtrType.
...
llvm-svn: 173581
2013-01-26 17:08:37 +00:00
Hal Finkel
2d443e94b4
BBVectorize: Add a additional comment about the cost computation
...
llvm-svn: 173580
2013-01-26 16:49:04 +00:00
Hal Finkel
351a75b6d7
BBVectorize: Fix anomalous capital letter in comment
...
llvm-svn: 173579
2013-01-26 16:49:03 +00:00
Dmitri Gribenko
eadae014ed
<limits.h> includes <linux/limits.h> on Linux, no need to special-case it
...
llvm-svn: 173578
2013-01-26 16:29:36 +00:00
Dmitri Gribenko
e835406cd7
libclang: make getCursorStmt() and getCursorExpr() return const pointers
...
Also change EnqueueVisitor to use ConstStmtVisitor as a consequence.
llvm-svn: 173577
2013-01-26 15:29:08 +00:00
Tim Northover
20122ad27d
Specify non-GNU-ARM triples for key-function test.
...
Since ARM has diverging ABIs on this detail, it's probably worth
testing both it and a "normal" Itanium system.
llvm-svn: 173576
2013-01-26 15:27:54 +00:00
Dmitri Gribenko
19ae7a88b0
Constify getOptionalExplicitTemplateArgs()
...
llvm-svn: 173575
2013-01-26 15:24:56 +00:00
Dmitri Gribenko
d06f7ff6d3
Constify some getters of DesignatedInitExpr
...
llvm-svn: 173574
2013-01-26 15:15:52 +00:00
Benjamin Kramer
ac49d37a63
lldX86_64ELFTarget depends on lldCore.
...
llvm-svn: 173573
2013-01-26 13:49:19 +00:00
Benjamin Kramer
6a93596538
X86: Decode PALIGN operands so I don't have to do it in my head.
...
llvm-svn: 173572
2013-01-26 13:31:37 +00:00
Dmitri Gribenko
675911d99c
Documentation: fix syntax error
...
Patch by David Waggoner
llvm-svn: 173571
2013-01-26 13:30:13 +00:00
Michael J. Spencer
20231f1275
Use proper delete.
...
llvm-svn: 173570
2013-01-26 12:26:56 +00:00
Benjamin Kramer
99c68dd964
X86: Do splat promotion later, so the optimizer can chew on it first.
...
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
2013-01-26 11:44:21 +00:00
Benjamin Kramer
7268a05178
FileCheckize and merge some tests.
...
llvm-svn: 173568
2013-01-26 11:14:32 +00:00
NAKAMURA Takumi
a44b1c2486
Object/RelocVisitor: Add minimal support, R_MIPS_32, for mips.
...
It fixes llvm-dwarfdump for mips and mipsel.
llvm-svn: 173567
2013-01-26 08:27:36 +00:00
NAKAMURA Takumi
3ba23555de
Object/RelocVisitor: Add minimal support, R_PPC64_ADDR32, for ppc64.
...
It fixes llvm-dwarfdump for ppc64-elf.
llvm-svn: 173566
2013-01-26 08:27:29 +00:00
NAKAMURA Takumi
a5b09ff6b9
RelocVisitor::visit(): Set hasError in the default path.
...
llvm-svn: 173565
2013-01-26 08:27:23 +00:00
Jason Molenda
ec2546ab97
One more change of a uint32_t variable to offset_t
...
to match Greg's dataextractor patch, this one in some
#if defined arm code.
llvm-svn: 173564
2013-01-26 07:06:09 +00:00
Reed Kotler
233cee2b5b
fix use of std::std. it's ordered set.
...
llvm-svn: 173563
2013-01-26 06:58:35 +00:00