Daniel Dunbar
72c33f5657
Driver: Forgot to mark -### as a driver option.
...
llvm-svn: 67184
2009-03-18 08:03:24 +00:00
Daniel Dunbar
dcd05482bd
Driver: Add assert and FIXME; arguments which act as linker inputs
...
(e.g., -filelist) are currently broken.
llvm-svn: 67183
2009-03-18 08:02:40 +00:00
Daniel Dunbar
8eba365d36
Driver: Provide Arg::render implementations.
...
llvm-svn: 67182
2009-03-18 08:01:48 +00:00
Daniel Dunbar
4b6058e33a
Driver: Add "d" flag to Options.def for options which are completely
...
handled by driver.
- This is not very precise, we use it to drive the "forward-to-gcc"
predicate, when trying to talk to a generic gcc tool.
- Slightly better than what ccc was doing, and should be good
enough. Platforms which want a robust driver should implement a
proper tool chain.
llvm-svn: 67181
2009-03-18 08:01:15 +00:00
Daniel Dunbar
04c4c2c3db
Driver: ConstructJob also needs to know the destination (where to put
...
its commands).
llvm-svn: 67179
2009-03-18 07:06:02 +00:00
Daniel Dunbar
3beceaf7f1
Driver: Print version on stderr to match [gc]cc.
...
llvm-svn: 67178
2009-03-18 06:51:03 +00:00
Daniel Dunbar
0928b3125c
Driver: Implement -### (hard to tell, since we don't actually
...
construct any jobs).
llvm-svn: 67177
2009-03-18 06:49:39 +00:00
Daniel Dunbar
0381128ad9
Driver: Add forwarding methods to underlying list for PipedJob and
...
JobList.
llvm-svn: 67176
2009-03-18 06:48:39 +00:00
Daniel Dunbar
2b4bda8073
Driver: Claim inputs when we bind the InputAction.
...
llvm-svn: 67174
2009-03-18 06:21:12 +00:00
Daniel Dunbar
adfd573c3c
Driver: Make Arg::Claimed mutable.
...
- This is unfortunate but necessary to retain any utility for const.
llvm-svn: 67173
2009-03-18 06:20:32 +00:00
Daniel Dunbar
e4197f6203
Driver: Rename Command::Argv to Command::Arguments to make it clearer
...
that this does not include the implicit first argument (the executable
name).
llvm-svn: 67172
2009-03-18 06:13:37 +00:00
Daniel Dunbar
bcd775b436
Driver: Don't claim inputs when pipelining, a tool should eventually
...
claim these.
llvm-svn: 67171
2009-03-18 06:09:38 +00:00
Daniel Dunbar
0450e6dc4c
Driver: Add a dash of const.
...
llvm-svn: 67170
2009-03-18 06:07:59 +00:00
Daniel Dunbar
1a093d2049
Driver: Stub out Tool::ConstructJob.
...
llvm-svn: 67169
2009-03-18 06:00:36 +00:00
Daniel Dunbar
0f62e98d85
Add 'make cscope.files' top level target.
...
llvm-svn: 67168
2009-03-18 05:59:14 +00:00
Daniel Dunbar
aabaac4743
Driver: Fix Compilation::getArgsForToolChain, local variable was
...
shadowing member.
llvm-svn: 67167
2009-03-18 05:58:45 +00:00
Daniel Dunbar
1197adcbf1
Driver: Add two normalizations for powerpc.
...
- PR3830
llvm-svn: 67166
2009-03-18 04:41:46 +00:00
Chris Lattner
c2a0b97950
fix PR3809, codegen for inc/dec of function pointers.
...
llvm-svn: 67165
2009-03-18 04:25:13 +00:00
Chris Lattner
63d06ab65a
teach codegen to handle noop casts as lvalues.
...
llvm-svn: 67164
2009-03-18 04:02:57 +00:00
Daniel Dunbar
dc78bd9f79
Fix -E mismatch; an identifier followed by a numeric constant does not
...
require a space (to avoid concatenation) if the numeric constant had a
leading period.
- PR3819.
llvm-svn: 67163
2009-03-18 03:32:24 +00:00
Daniel Dunbar
eb843bedf9
Driver: Ditch Driver::DefaultToolChain, this can vary between compilations.
...
llvm-svn: 67162
2009-03-18 03:13:20 +00:00
Daniel Dunbar
896cb66166
Driver: I was too hasty in free'ing Actions, we sometimes share
...
Actions so a simple tree traversal isn't quite good enough. Leaving a
FIXME for now.
llvm-svn: 67161
2009-03-18 03:02:22 +00:00
Daniel Dunbar
06d918c2f4
Driver: Initialize Arg::Claimed
...
llvm-svn: 67160
2009-03-18 02:57:50 +00:00
Daniel Dunbar
bea41f1da9
Driver: Err, didn't mean to commit this part yet.
...
llvm-svn: 67159
2009-03-18 02:56:39 +00:00
Daniel Dunbar
f0eddb8510
Driver: Move actions into Compilation, and construct the compilation
...
earlier.
- This gives us a simple ownership model, and allows clients access
to more information should they ever want it.
- We now free Actions correctly.
llvm-svn: 67158
2009-03-18 02:55:38 +00:00
Daniel Dunbar
d9b80c2af8
Driver: Use custom diag printer to drop dependency on libFrontend and
...
libLex.
llvm-svn: 67155
2009-03-18 02:11:26 +00:00
Zhongxing Xu
e40de828fc
add test case.
...
llvm-svn: 67154
2009-03-18 02:07:30 +00:00
Daniel Dunbar
d00978bc0d
Driver: Add test for binding of precompile; exposed bug due to my
...
flawed idea that llvm::sys::Path::getBasename was a version of
basename().
llvm-svn: 67153
2009-03-18 02:00:31 +00:00
Zhongxing Xu
17299e6172
Use a work list to recursively build up the subregion mapping, and mark live
...
var region roots.
llvm-svn: 67152
2009-03-18 01:54:31 +00:00
Daniel Dunbar
338d74898c
Driver: Implement JoinedAndSeparateArg::getValue and add parsing test
...
case.
llvm-svn: 67151
2009-03-18 01:48:37 +00:00
Daniel Dunbar
6965c2b113
Driver: UnknownHostInfo was always returning 0.
...
llvm-svn: 67150
2009-03-18 01:39:08 +00:00
Daniel Dunbar
2608c548b5
Driver: Use PrettyStackTrace.
...
llvm-svn: 67149
2009-03-18 01:38:48 +00:00
Gabor Greif
68cfd78375
cleanup instantiation code, tighten testcase
...
llvm-svn: 67148
2009-03-18 01:16:08 +00:00
Anders Carlsson
fe2e680509
Fix failing test case.
...
llvm-svn: 67147
2009-03-18 01:10:22 +00:00
Daniel Dunbar
0160172228
Driver: Release Host, ToolChain, and Tool implementations.
...
llvm-svn: 67146
2009-03-18 01:09:40 +00:00
Gabor Greif
8af7837b08
instantiate ?: expressions
...
llvm-svn: 67145
2009-03-18 00:55:04 +00:00
Douglas Gregor
6bfde496ee
The scope representation can now be either a DeclContext pointer or a
...
Type pointer. This allows our nested-name-specifiers to retain more
information about the actual spelling (e.g., which typedef did the
user name, or what exact template arguments were used in the
template-id?). It will also allow us to have dependent
nested-name-specifiers that don't map to any DeclContext.
llvm-svn: 67140
2009-03-18 00:36:05 +00:00
Daniel Dunbar
389fe1f563
Driver: Add test case for -ccc-clang-archs (which, it turns out, was
...
inverted).
llvm-svn: 67135
2009-03-18 00:12:31 +00:00
Douglas Gregor
45418cb4a9
Small sanity-checking testcase
...
llvm-svn: 67133
2009-03-17 23:49:44 +00:00
Daniel Dunbar
0071da951b
Driver: Add test case for various parts of binding (no-integrated-cpp,
...
-ccc-no-clang, -ccc-no-clang-cxx, -ccc-no-clang-cpp, -fsyntax-only).
llvm-svn: 67131
2009-03-17 23:39:24 +00:00
Daniel Dunbar
ebfef240ae
Test had extra line which was masking actual failures.
...
llvm-svn: 67130
2009-03-17 23:30:47 +00:00
Daniel Dunbar
8904d1adda
Driver: Add test for pipelining for analyzer and precompiler.
...
llvm-svn: 67129
2009-03-17 23:26:35 +00:00
Chris Lattner
441914ea5b
pull a nested conditional + comment out into its own variable,
...
no functionality change.
llvm-svn: 67128
2009-03-17 23:17:04 +00:00
Chris Lattner
9363e3106e
don't crash when sentinel attribute is used on function without a prototype,
...
discovered as part of PR3817
llvm-svn: 67127
2009-03-17 23:03:47 +00:00
Chris Lattner
7440dcb53e
Fix Type::getDesugaredType() to remove all direct sugar on
...
a type. For example, if we have a typedef of a typeof of
int, we strip all the say down to int. This allows us to
simplify the getAs* methods, and is the first step towards
fixing PR3817
llvm-svn: 67126
2009-03-17 22:51:02 +00:00
Daniel Dunbar
b39cc52eda
Driver: Add -ccc-print-bindings option (for testing); the Python
...
driver has no corresponding option.
llvm-svn: 67125
2009-03-17 22:47:06 +00:00
Daniel Dunbar
82116f8df4
Driver: Add name to Tool (for testing/debugging) and move GCC_* tools
...
into gcc:: namespace.
llvm-svn: 67120
2009-03-17 22:45:24 +00:00
Ted Kremenek
211094d793
Stub out some code for support for NSDeallocateObject. This is enabled yet until
...
we resolve the semantics of this function when GC is enabled.
llvm-svn: 67116
2009-03-17 22:43:44 +00:00
Chris Lattner
f568f8c889
GCC 4.0 isn't happy with VISIBILITY_HIDDEN on a namespace.
...
llvm-svn: 67112
2009-03-17 22:24:01 +00:00
Daniel Dunbar
15abb2ee0e
Driver: GCC 4.0 isn't happy with VISIBILITY_HIDDEN on a namespace.
...
llvm-svn: 67110
2009-03-17 22:18:43 +00:00