Chris Lattner
b16d2adb2f
X86 BE requires SelectionDAG
...
llvm-svn: 19337
2005-01-07 07:51:25 +00:00
Jeff Cohen
9bf3df5cc6
Get the #ifdef right on LinkAllPasses.h.
...
llvm-svn: 19310
2005-01-06 07:01:08 +00:00
Jeff Cohen
c205cf1049
Fix minor mistakes
...
llvm-svn: 19309
2005-01-06 06:29:42 +00:00
Jeff Cohen
dfe5e3b330
Add project opt to Visual Studio.
...
llvm-svn: 19307
2005-01-06 06:02:53 +00:00
Reid Spencer
aea16eba65
Make opt honor the quiet option when printing the bytecode warning.
...
llvm-svn: 19294
2005-01-05 17:31:55 +00:00
Reid Spencer
fb233f641d
Prevent output of bytecode to std::cout unless the --force flag is given.
...
This prevents bytecode splats with usage like: cat file.ll | llvm-as -
llvm-svn: 19239
2005-01-02 00:08:46 +00:00
Reid Spencer
7d4a2f180f
Move the code for printing out a warning about bytecode output to a console
...
into lib/Support so it can be used with other tools.
llvm-svn: 19238
2005-01-01 23:57:01 +00:00
Jeff Cohen
d3e59f9ac0
Fix typo 'ompress' => 'compress'.
...
llvm-svn: 19232
2005-01-01 22:10:32 +00:00
Reid Spencer
41ac6a5ebb
Correct the conditional test for non-portable tools so that it will
...
correctly omit them for non-Unix operating systems.
llvm-svn: 19206
2004-12-31 22:56:14 +00:00
Reid Spencer
30def4aeda
Fix the help documentation to not imply multiple archive files can be
...
processed.
llvm-svn: 19193
2004-12-30 17:51:57 +00:00
Reid Spencer
298f85282c
For PR351:
...
* Place a try/catch block around the entire tool to Make sure std::string
exceptions are caught and printed before exiting the tool.
* Make sure we catch unhandled exceptions at the top level so that we don't
abort with a useless message but indicate than an unhandled exception was
generated.
llvm-svn: 19192
2004-12-30 05:36:08 +00:00
Reid Spencer
db6309fd55
For PR351:
...
* sys::PreventCoreFiles -> sys::Process::PreventCoreFiles
llvm-svn: 19162
2004-12-27 06:18:02 +00:00
Brian Gaeke
a0e66891ae
Fix the build on PowerPC/Darwin - it thought we were declaring a new
...
function or something. Since FileRemover takes a const reference to
sys::Path, we need to pass an actual sys::Path variable.
llvm-svn: 19111
2004-12-22 22:33:33 +00:00
Reid Spencer
d7c3002a9e
Correct compilation for Cygwin. FindExecutable now returns a sys::Path.
...
llvm-svn: 19109
2004-12-22 13:50:17 +00:00
Reid Spencer
6921d82714
Support the gas option --traditional-format which, for some reason, gets
...
passed to gccas when the --program-prefix option is used to configure CFE.
llvm-svn: 19091
2004-12-22 02:58:43 +00:00
Misha Brukman
7163c79397
Fix the Win32 build
...
llvm-svn: 19088
2004-12-22 01:37:33 +00:00
Reid Spencer
af516feb1c
Make parameters to CopyFile use explicit instantiation of sys::Path.
...
llvm-svn: 19086
2004-12-22 01:26:48 +00:00
Reid Spencer
f0859d5e54
Use explicit construction of sys::Path from std::string because the
...
constructor is "explicit".
llvm-svn: 19078
2004-12-21 03:24:02 +00:00
Reid Spencer
6676fe75c3
Allow compilers that can't distinguish between a class instantiation and
...
the declaration of a function to compile this.
llvm-svn: 19073
2004-12-20 19:16:12 +00:00
Misha Brukman
368ae0a5a8
llvm/Config/unistd.h has gone away, far, far away
...
llvm-svn: 19068
2004-12-20 05:36:57 +00:00
Reid Spencer
7cce6dd8ec
Incorporate the contents of include/llvm/Config/unistd.h as this is the
...
last file in LLVM to require the header. After ths commmit, our unistd.h
will go away.
llvm-svn: 19065
2004-12-20 04:34:36 +00:00
Brian Gaeke
36dbc3c225
Use Config/alloca.h instead of alloca.h - pointed out by Duraid and Misha
...
llvm-svn: 19059
2004-12-20 04:02:01 +00:00
Brian Gaeke
da4ddcfb2b
Make this compile on Solaris.
...
llvm-svn: 19047
2004-12-19 21:08:07 +00:00
Reid Spencer
89828bbfb7
For PR351:
...
* Support changes in sys::Program::ExecuteAndWait interface
llvm-svn: 19044
2004-12-19 18:00:56 +00:00
Reid Spencer
44bf7cb4fa
sys::CopyFile returns void and throws an exception on error which will be
...
caught by llvm-ld's main function.
llvm-svn: 19030
2004-12-18 06:54:21 +00:00
Reid Spencer
4b52aea27c
sys::CopyString throws an exception on error which will be caught by gccld
...
main function.
llvm-svn: 19029
2004-12-18 06:53:10 +00:00
Reid Spencer
10c87d4b9c
The CopyFile function got moved into the sys namespace.
...
llvm-svn: 19026
2004-12-18 00:19:32 +00:00
Reid Spencer
511da5e37b
Reverse the logic for Win32 to ensure that bugpoint and llvm-db are NOT
...
built on this platform.
llvm-svn: 19015
2004-12-17 08:00:40 +00:00
Reid Spencer
7b18215b33
Fix this file to actually work. ifneq was incorrectly used. Subtract out
...
llvm-db and bugpoint for Win32 rather than add them in
subtr
llvm-svn: 19014
2004-12-17 07:59:53 +00:00
Reid Spencer
50d34f043a
Makefile.JIT doesn't exist any more so it doesn't need to be distributed.
...
llvm-svn: 19009
2004-12-17 02:06:36 +00:00
Reid Spencer
8216f0a6e5
Disable bugpoint and llvm-db tools for Win32. They can't be supported on
...
that platform without a lot of work because they depend on process image
copy behavior of fork(2).
llvm-svn: 19008
2004-12-17 01:46:41 +00:00
Tanya Lattner
a4c2a78ddc
Linking in all of ScalarOpts.
...
llvm-svn: 19002
2004-12-16 23:07:13 +00:00
Reid Spencer
e2af7fb67b
For PR351:
...
* removeFile() -> sys::Path::destroyFile()
* remove extraneous toString() calls
* convert local variables representing path names from std::string to
sys::Path
* Use sys::Path objects with FileRemove instead of std::string
* Use sys::Path methods for construction of path names
llvm-svn: 19001
2004-12-16 23:04:20 +00:00
Chris Lattner
686d0155d7
No targets actually use this library
...
llvm-svn: 18995
2004-12-16 19:39:45 +00:00
Reid Spencer
01430a34a4
Unbreak all archive reading operations introduced by the last patch which
...
always exited the program with exit code 1 in these cases, regardless of
whether an error occurred or not.
llvm-svn: 18966
2004-12-15 21:58:03 +00:00
Chris Lattner
5c60a89777
Do not fail an assertion on a broken archive
...
llvm-svn: 18959
2004-12-15 07:44:15 +00:00
Reid Spencer
48ea06b9bb
Change LLVMGCCDIR/bytecode-libs -> LLVMGCCDIR/lib
...
llvm-svn: 18951
2004-12-15 01:54:37 +00:00
Reid Spencer
6ccc7d8dab
For PR351:
...
Remove #inclusion of Support/FileUtilities.h which isn't needed any more.
llvm-svn: 18950
2004-12-15 01:53:50 +00:00
Reid Spencer
b9c443d0a3
For PR351:
...
* Convert use of getUniqueFilename to sys::Path::makeUnique();
llvm-svn: 18949
2004-12-15 01:53:08 +00:00
Reid Spencer
ce078ca259
For PR351:
...
* Change ExecWait calls to sys::Program::ExecuteAndWait
* Convert to use sys::Path where it makes sense
llvm-svn: 18929
2004-12-14 04:20:08 +00:00
Reid Spencer
8dff6023fe
For PR351:
...
Adjust to interface change for FindExecutable.
llvm-svn: 18920
2004-12-13 23:44:23 +00:00
Reid Spencer
89414d8039
For PR351:
...
llee was a nice hack, but it wasn't portable so its gone, with Misha's
approval. Operating systems have facilities available for making bytecode
directly executable without this utility.
llvm-svn: 18916
2004-12-13 23:15:32 +00:00
Misha Brukman
10f69abc85
Minor cleanups
...
llvm-svn: 18914
2004-12-13 21:42:16 +00:00
Reid Spencer
fb6f40bac1
For PR351:
...
Replace MakeFileReadable and MakeFileExecutable (from FileUtilities) with
sys::Path::makeReadable and sys::Path:makeExecutable, respectively.
llvm-svn: 18909
2004-12-13 20:03:02 +00:00
Reid Spencer
20a3d1c132
Make the loop termination condition clear when building the set of items to
...
pass to the Linker::LinkInItems function.
llvm-svn: 18894
2004-12-13 17:18:19 +00:00
Reid Spencer
dd50ab43d0
For PR351: \
...
The getFileTimestamp and getFileSize functions have been removed from \
FileUtilities.{h,cpp}. They are replaced by Path::getTimestamp and \
Path::getSize,respectively.
llvm-svn: 18892
2004-12-13 17:01:53 +00:00
Reid Spencer
835bbf5a1c
Make use of the new Path inserter function.
...
llvm-svn: 18887
2004-12-13 08:53:36 +00:00
Reid Spencer
8563fa6493
PR351: \
...
Use sys::Path not FileUtilities to check file types
llvm-svn: 18865
2004-12-13 03:01:26 +00:00
Reid Spencer
36c15ff8e1
Convert to use new Linker class interface
...
llvm-svn: 18864
2004-12-13 03:01:14 +00:00
Reid Spencer
f89154ee5c
LinkModules is now in the Linker class
...
llvm-svn: 18863
2004-12-13 03:01:03 +00:00