Shantonu Sen
35684d034e
Keep on castin', in the name of -pedantic
...
llvm-svn: 82626
2009-09-23 15:34:09 +00:00
Douglas Gregor
2a920014d3
When code-completion after a "," is building an overload set, note
...
that there is one more argument (the one following the comma) and make
the candidate non-viable if the function cannot accept any argument in
that position.
llvm-svn: 82625
2009-09-23 14:56:09 +00:00
Torok Edwin
9c9630aa88
The test/ directory needs to be created always when building objdir != srcdir,
...
because the toplevel 'make check-all' needs the rule for test/lit.site.cfg,
and for that test/ must exist.
llvm-svn: 82624
2009-09-23 14:23:05 +00:00
Gabor Greif
a8f9374661
fix typo in file name
...
llvm-svn: 82623
2009-09-23 13:15:04 +00:00
Benjamin Kramer
43355aec61
Fix a struct/class mismatch.
...
llvm-svn: 82622
2009-09-23 11:48:57 +00:00
Daniel Dunbar
3e7a723fef
Factor Windows target into VS, MinGW and Cygwin variants.
...
- Patch by John Thompson!
llvm-svn: 82621
2009-09-23 07:31:35 +00:00
John McCall
0110327ae3
Make the type traits for a const pointer defer to those for a unqualified
...
pointer, instead of providing independent values modelled on the default
implementation.
llvm-svn: 82620
2009-09-23 06:53:51 +00:00
Evan Cheng
262f86ed90
Fix PR5024. LiveVariables physical register defs should *commit* only after all
...
of the defs are processed.
Also fix a implicit_def propagation bug: a implicit_def of a physical register
should be applied to uses of the sub-registers.
llvm-svn: 82616
2009-09-23 06:28:31 +00:00
Chris Lattner
d545ad1301
implement support for __builtin_eh_return_data_regno on x86-32 and x86-64.
...
This implements PR5034 and rdar://6836445.
llvm-svn: 82614
2009-09-23 06:06:36 +00:00
Chris Lattner
f47afd707e
return a bool value as a bool
...
llvm-svn: 82613
2009-09-23 05:39:46 +00:00
Evan Cheng
b2abe07457
Fix a obvious logic error.
...
llvm-svn: 82610
2009-09-23 05:23:19 +00:00
Edward O'Callaghan
b5127599f9
Note about compiler-rt only building on Darwin no longer applies.
...
llvm-svn: 82609
2009-09-23 05:06:46 +00:00
Edward O'Callaghan
0e38b38dd1
Update site information to reflect using cmake to build compiler-rt and not legacy makefiles.
...
llvm-svn: 82608
2009-09-23 05:04:26 +00:00
Edward O'Callaghan
49dc8717a4
CMake should only pass GCC options to GCC.
...
llvm-svn: 82607
2009-09-23 04:57:36 +00:00
Edward O'Callaghan
9a9c26eba6
We don't need a C++ compiler to build Blocks, Don't check for one.
...
llvm-svn: 82606
2009-09-23 03:53:48 +00:00
Edward O'Callaghan
dd54ab207b
Fix compile time warning: format '%#lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int'
...
llvm-svn: 82605
2009-09-23 03:47:24 +00:00
Edward O'Callaghan
351a54e86f
Improve readability.
...
llvm-svn: 82604
2009-09-23 03:42:03 +00:00
Gabor Greif
98dd936bc9
pretty mechanical changes to match coding guidelines (blessed by sabre on IRC)
...
llvm-svn: 82603
2009-09-23 02:46:12 +00:00
Anders Carlsson
d49844b715
Add a new variant of EmitCXXAggrConstructorCall that takes a Value that holds the number of elements to construct, to be used when implementing new[].
...
llvm-svn: 82602
2009-09-23 02:45:36 +00:00
Chris Lattner
8bcc6445c7
errorstr can be null, don't unconditionally set it. Only report that
...
"the jit has not been linked in" if the interpreter failed.
This fixes a unit test failure.
llvm-svn: 82601
2009-09-23 02:03:49 +00:00
Chris Lattner
41fa2bd112
Make EngineBuilder return more error codes, by KS Sreeram.
...
llvm-svn: 82600
2009-09-23 01:46:04 +00:00
Dan Gohman
c0353bfff5
Give MachineMemOperand an operator<<, factoring out code from
...
two different places for printing MachineMemOperands.
Drop the virtual from Value::dump and instead give Value a
protected virtual hook that can be overridden by subclasses
to implement custom printing. This lets printing be more
consistent, and simplifies printing of PseudoSourceValue
values.
llvm-svn: 82599
2009-09-23 01:33:16 +00:00
Ted Kremenek
1624a4784a
Fix PR 4988 by removing an invalid assertion (a function can be referenced in
...
GRExprEngine::VisitDeclRefExpr without 'asLValue' being true).
llvm-svn: 82598
2009-09-23 01:30:01 +00:00
Dan Gohman
1439957928
Fix X86's unfoldMemoryOperand to properly handle MachineMemOperands.
...
llvm-svn: 82597
2009-09-23 01:29:41 +00:00
Fariborz Jahanian
21ccf06352
Produce detailed diagnostics when overload
...
resolution failed to select a candidate due to
ambiguity in type conversion function selection.
llvm-svn: 82596
2009-09-23 00:58:07 +00:00
Anders Carlsson
aa01b91f9b
Fix indentation in xcode project.
...
llvm-svn: 82595
2009-09-23 00:37:50 +00:00
Anders Carlsson
8ab20bb144
Cast the array size expr to a size_t
...
llvm-svn: 82594
2009-09-23 00:37:25 +00:00
Douglas Gregor
f0f51985a1
Print the results of code-completion for overloading by displaying the
...
signature of the function with the current parameter highlighted as a
placeholder.
llvm-svn: 82593
2009-09-23 00:34:09 +00:00
Douglas Gregor
05f477c177
Separate the code-completion results for call completion from the
...
results for other, textual completion. For call completion, we now
produce enough information to show the function call argument that we
are currently on.
llvm-svn: 82592
2009-09-23 00:16:58 +00:00
Mike Stump
8808063181
This is overly constraining with respect to clang.
...
llvm-svn: 82591
2009-09-23 00:13:30 +00:00
Douglas Gregor
64b12b5ee7
Make sure we don't try to add code-completion results without an
...
active shadow map.
llvm-svn: 82588
2009-09-22 23:31:26 +00:00
Douglas Gregor
2b3ee156fc
When code-completion finds a declaration only because it is usable as
...
the start of a nested-name-specifier, add the "::" after the
nested-name-specifier to the code-completion string.
llvm-svn: 82587
2009-09-22 23:22:24 +00:00
Douglas Gregor
5bf52697b0
Tweak the code-completion results ranking and formation, so that
...
members found in base classes have the same ranking as members found
in derived classes. However, we will introduce an informative note for
members found in base classes, showing (as a nested-name-specifier)
the qualification to name the base class, to make it clear which
members are from bases.
llvm-svn: 82586
2009-09-22 23:15:58 +00:00
Anders Carlsson
cc52f65500
Move codegen of new and delete to CGCXXExpr.cpp
...
llvm-svn: 82585
2009-09-22 22:53:17 +00:00
Mike Stump
17abe2a620
Remove now fixed FIXME.
...
llvm-svn: 82584
2009-09-22 22:31:44 +00:00
Daniel Dunbar
5564ba743f
Push "clang-is-production" logic up to tools/driver, and make it hittable by
...
defining the CLANG_IS_PRODUCTION Makefile variable.
llvm-svn: 82583
2009-09-22 22:31:13 +00:00
Daniel Dunbar
81fff1c358
Spell clang-cc correctly.
...
llvm-svn: 82582
2009-09-22 22:30:59 +00:00
Douglas Gregor
292b68699d
Add getDeclaration()/getKind() accessors to CodeCompleteConsumer::Result
...
llvm-svn: 82581
2009-09-22 22:11:38 +00:00
Anders Carlsson
8c978b4fc2
No need to null check implicit lvalue cast exprs.
...
llvm-svn: 82580
2009-09-22 22:00:46 +00:00
Anders Carlsson
8fef09cd80
When doing a derived-to-base class and the class offset is 0 we can just do a simple bitcast.
...
llvm-svn: 82579
2009-09-22 21:58:22 +00:00
Daniel Dunbar
03184798c3
Reconcile Clang/ARM target data string with llvm-gcc (module eabi weirdness).
...
llvm-svn: 82578
2009-09-22 21:44:58 +00:00
Douglas Gregor
ba4490399b
Teach code-completion to introduce a ", ..." placeholder for variadic functions
...
llvm-svn: 82577
2009-09-22 21:42:17 +00:00
Douglas Gregor
9bfc2e50a7
In C++, a variadic function does not need an ellipsis prior to the comma. Parse it in both C and C++, but diagnose it as an error in C with a fix-it hint to add the comma.
...
llvm-svn: 82576
2009-09-22 21:41:40 +00:00
Ted Kremenek
3003001a86
Fix: <rdar://problem/7242006> [RegionStore] compound literal assignment with floats not honored
...
llvm-svn: 82575
2009-09-22 21:19:14 +00:00
Erick Tryzelaar
21e83eab3f
Add examples for Kaleidoscope chapters 2 through 6.
...
Conflicts:
examples/Makefile
llvm-svn: 82574
2009-09-22 21:15:19 +00:00
Erick Tryzelaar
2d8813cfb0
Rename Kaleidoscope to show that it's for Chapter 7 of the tutorial.
...
llvm-svn: 82573
2009-09-22 21:15:00 +00:00
Erick Tryzelaar
6e2b34bc14
Sync c++ kaleidoscope tutorial with test.
...
llvm-svn: 82572
2009-09-22 21:14:49 +00:00
Douglas Gregor
ea9b03e6e2
Replace the -code-completion-dump option with
...
-code-completion-at=filename:line:column
which performs code completion at the specified location by truncating
the file at that position and enabling code completion. This approach
makes it possible to run multiple tests from a single test file, and
gives a more natural command-line interface.
llvm-svn: 82571
2009-09-22 21:11:38 +00:00
Devang Patel
320a1c4083
Add SetLocation() to allow IRBuilder user to set location info for an instruction already created.
...
llvm-svn: 82570
2009-09-22 20:56:31 +00:00
Devang Patel
276b02b325
Check exisiting dbg MDKind first.
...
llvm-svn: 82568
2009-09-22 20:54:13 +00:00