Anders Carlsson
867b48f713
More member pointer work.
...
llvm-svn: 79922
2009-08-24 17:16:23 +00:00
Anders Carlsson
4557b2c0c2
Remove dead code
...
llvm-svn: 79921
2009-08-24 16:52:33 +00:00
Douglas Gregor
8a2e601917
Try to complete a type before looking for conversion functions within
...
that type. Note that we do not produce a diagnostic if the type is
incomplete; rather, we just don't look for conversion functions. Fixes PR4660.
llvm-svn: 79919
2009-08-24 15:23:48 +00:00
Douglas Gregor
84605aeac9
Refactor the template-instantiation logic for expressions into a
...
generic tree transformation (also used for recanonicalization) and a
small amount of template-instantiation-specific logic.
llvm-svn: 79917
2009-08-24 13:43:27 +00:00
Torok Edwin
db7149246f
Fix build of clang with gcc-4.4: #include <cstdio> was missing.
...
llvm-svn: 79916
2009-08-24 13:25:12 +00:00
Douglas Gregor
684582b632
Improve top-level-semicolon test a bit
...
llvm-svn: 79913
2009-08-24 12:20:57 +00:00
Douglas Gregor
8b9575f27e
Top-level semicolons are allowed in C++0x. Fixes PR4755.
...
llvm-svn: 79912
2009-08-24 12:17:54 +00:00
Douglas Gregor
c8c277a1b3
Make sure to adjust function template declarations to their templated
...
declarations (e.g., FunctionTemplateDecl -> CXXConstructorDecl) before
performing semantic analysis on the declarations. Fixes PR4761.
llvm-svn: 79911
2009-08-24 11:57:43 +00:00
Daniel Dunbar
582d61026d
llvm-mc/Mach-O: Preliminary support for indirect symbols.
...
- The indirect table itself isn't being filled in yet.
- This isn't factored properly and is rather FIXMEd, but at the moment I'm more
focused on figuring out what it needs to do.
llvm-svn: 79910
2009-08-24 11:56:58 +00:00
Duncan Sands
54dd438394
Fix the build when using gcc-4.4 on linux. Header needed
...
for stderr and fprintf.
llvm-svn: 79909
2009-08-24 10:59:01 +00:00
Duncan Sands
dd5b68d465
Fix the build with gcc-4.4 on linux: header needed
...
for EOF.
llvm-svn: 79908
2009-08-24 10:34:41 +00:00
Daniel Dunbar
576d90d39b
Remove TargetInfo::getTargetPrefix().
...
llvm-svn: 79907
2009-08-24 09:54:37 +00:00
Daniel Dunbar
b8dc4ea2c4
Add llvm::Triple::getArchTypePrefix for getting the intrinsic prefix for an
...
identifier architecture.
llvm-svn: 79906
2009-08-24 09:53:06 +00:00
Daniel Dunbar
8100d01ecf
Switch to StringRef based BitstreamWriter APIs, where appropriate.
...
- There is lots of non-endian safe code in here... :/
llvm-svn: 79905
2009-08-24 09:31:37 +00:00
Daniel Dunbar
6111060e8c
Add StringRef based APIs to BitstreamWriter.
...
llvm-svn: 79904
2009-08-24 09:29:31 +00:00
Daniel Dunbar
7c32f9485f
Add MemoryBuffer::getBuffer() -> StringRef.
...
llvm-svn: 79903
2009-08-24 09:29:24 +00:00
Daniel Dunbar
516bb9dd76
Remove arch normalization from Driver, this should be unnecessary now that
...
things have moved to llvm::Triple.
llvm-svn: 79902
2009-08-24 09:16:49 +00:00
Daniel Dunbar
40165180f7
Switch TargetInfo to store an llvm::Triple.
...
- Primarily to discourage clients form making decisions based on the string.
llvm-svn: 79901
2009-08-24 09:10:05 +00:00
Daniel Dunbar
e3532f82a7
Switch ABI selection to use llvm::Triple instead of string munging.
...
llvm-svn: 79900
2009-08-24 08:52:16 +00:00
Daniel Dunbar
04a1158d13
llvm-mc/Mach-O: Support symbol attributes.
...
- This is mostly complete, the main thing missing is .indirect_symbol support
(which would be straight-forward, except that the way it is implemented in
'as' makes getting an exact .o match interesting).
llvm-svn: 79899
2009-08-24 08:40:12 +00:00
Daniel Dunbar
d341e781da
llvm-mc: Tweak undefined symbol handling.
...
llvm-svn: 79898
2009-08-24 08:39:57 +00:00
Daniel Dunbar
ecd32d6a4f
Add missing include (for MSVC).
...
llvm-svn: 79897
2009-08-24 07:18:07 +00:00
Reid Kleckner
e56676a3cc
Fixed double free in Kaleidoscope. Fixes PR4762.
...
llvm-svn: 79896
2009-08-24 05:42:21 +00:00
Chris Lattner
dca19591f2
fix a GCC type punning warning.
...
llvm-svn: 79895
2009-08-24 05:19:01 +00:00
Dan Gohman
c9fa051f85
Correctly account for the Spaces array nul terminator. Thanks Chris!
...
llvm-svn: 79894
2009-08-24 04:43:38 +00:00
Chris Lattner
e7f064ed2b
improve documentation for linker_private linkage.
...
llvm-svn: 79893
2009-08-24 04:32:16 +00:00
Chris Lattner
c143023bac
remove the last *stream> #include from a public header.
...
llvm-svn: 79892
2009-08-24 04:14:03 +00:00
Dan Gohman
2ebc96ae95
These flushes were only needed when the code was transitioning between
...
std::cout and outs().
llvm-svn: 79891
2009-08-24 04:13:48 +00:00
Dan Gohman
f88f52e3b9
raw_ostream::indent is used for PadToColumn which often prints more
...
than 16 spaces. Make the Spaces array wide enough to handle common cases.
llvm-svn: 79890
2009-08-24 04:13:01 +00:00
Chris Lattner
72bb4f602c
prune #includes.
...
llvm-svn: 79889
2009-08-24 04:11:30 +00:00
Chris Lattner
44aed5dcf1
eliminate a #include.
...
llvm-svn: 79888
2009-08-24 04:07:51 +00:00
Chris Lattner
0ffe0e096d
split raw_os_ostream out to its own header and implementation file. This
...
means that raw_ostream no longer has to #include <iosfwd>. Nothing in llvm
should use raw_os_ostream.h, but llvm-gcc and some unit tests do.
llvm-svn: 79886
2009-08-24 04:02:06 +00:00
Chris Lattner
06fa176862
prune the #includes in raw_ostream.h by moving a
...
member out of line. ftostr is not particularly speedy,
so that method is presumably not perf sensitive.
llvm-svn: 79885
2009-08-24 03:52:50 +00:00
Chris Lattner
e849956de8
search unittests.
...
llvm-svn: 79884
2009-08-24 03:44:02 +00:00
Dan Gohman
a53c35d8d0
Unbreak the build for HAVE_GV platforms.
...
llvm-svn: 79883
2009-08-24 03:23:12 +00:00
Chris Lattner
13d62b60bd
remove a few dead insertion methods.
...
llvm-svn: 79882
2009-08-24 02:39:26 +00:00
Daniel Dunbar
83dbd7a432
Remove alloca config.h support.
...
- I did not actually remove the configure test itself, someone who can
regenerate configure should do this (see FIXME in autoconf/configure.ac)
llvm-svn: 79881
2009-08-24 02:14:39 +00:00
Chris Lattner
eb72593558
Remove this test now that the interpreter doesn't support
...
interpreting the wrong endianness anymore. This fixes a
failure on clang-powerpc-darwin8
llvm-svn: 79880
2009-08-24 02:05:59 +00:00
Daniel Dunbar
40b384eade
Unbreak unit tests.
...
llvm-svn: 79879
2009-08-24 02:02:58 +00:00
Daniel Dunbar
62e2148177
Remove include/llvm/Config/alloca.h, it is dead.
...
llvm-svn: 79878
2009-08-24 02:02:49 +00:00
Dale Johannesen
6bbeda41b9
Make linkerprivate work for ARM and PPC. Testcase covers
...
all Darwin targets; could be split into separate tests for
the chip subdirectories, but from Chris' last mail on testing
I assume he'd rather have only one test. Generic seems to be
the best available, maybe there should be a Darwin subdirectory?
llvm-svn: 79877
2009-08-24 01:03:42 +00:00
Oscar Fuentes
94e470504f
CMake: Updated library dependencies and list of source files.
...
llvm-svn: 79876
2009-08-23 23:59:15 +00:00
Chris Lattner
96cffa63a2
remove the dead std::ostream APInt inserter
...
llvm-svn: 79875
2009-08-23 23:11:28 +00:00
Chris Lattner
befdbd91cc
remove this test: it is testing for a "feature" I just removed.
...
llvm-svn: 79874
2009-08-23 23:01:02 +00:00
Chris Lattner
30ebdc4311
remove the last uses of Config/alloca.h
...
llvm-svn: 79873
2009-08-23 22:57:38 +00:00
Chris Lattner
486fcad4a8
fix some problems with my last patch which happen when one of
...
(HAVE_GV && (HAVE_DOT || HAVE_FDP || HAVE_NEATO || \
HAVE_TWOPI || HAVE_CIRCO))
are true.
llvm-svn: 79872
2009-08-23 22:53:53 +00:00
Chris Lattner
f6f5b5bcdb
just remove interpreter support for endianness mismatches. This was
...
really old code from when we were running sparcv9 bc files on x86
(before I ported llvm-gcc 3 to work on x86) :)
llvm-svn: 79871
2009-08-23 22:50:28 +00:00
Chris Lattner
390d78b3d0
remove use of alloca.h
...
llvm-svn: 79870
2009-08-23 22:49:13 +00:00
Chris Lattner
c521f54198
Prune #includes from llvm/Linker.h and llvm/System/Path.h,
...
forcing them down into various .cpp files.
This change also:
1. Renames TimeValue::toString() and Path::toString() to ::str()
for similarity with the STL.
2. Removes all stream insertion support for sys::Path, forcing
clients to call .str().
3. Removes a use of Config/alloca.h from bugpoint, using smallvector
instead.
4. Weans llvm-db off <iostream>
sys::Path really needs to be gutted, but I don't have the desire to
do it at this point.
llvm-svn: 79869
2009-08-23 22:45:37 +00:00
Chris Lattner
3441b4f77e
API changes to match llvm ToT.
...
llvm-svn: 79868
2009-08-23 22:45:33 +00:00