summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Prevent output of bytecode to std::cout unless the --force flag is given.Reid Spencer2005-01-021-1/+4
| | | | | | | This prevents bytecode splats with usage like: cat file.ll | llvm-as - git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19239 91177308-0d34-0410-b5e6-96231b3b80d8
* Move the code for printing out a warning about bytecode output to a consoleReid Spencer2005-01-011-7/+1
| | | | | | | into lib/Support so it can be used with other tools. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19238 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo 'ompress' => 'compress'.Jeff Cohen2005-01-013-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19232 91177308-0d34-0410-b5e6-96231b3b80d8
* Correct the conditional test for non-portable tools so that it willReid Spencer2004-12-311-2/+1
| | | | | | | correctly omit them for non-Unix operating systems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19206 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the help documentation to not imply multiple archive files can beReid Spencer2004-12-301-1/+1
| | | | | | | processed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19193 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-3017-840/+948
| | | | | | | | | | | * 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19192 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-271-2/+2
| | | | | | | * sys::PreventCoreFiles -> sys::Process::PreventCoreFiles git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19162 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the build on PowerPC/Darwin - it thought we were declaring a newBrian Gaeke2004-12-221-1/+2
| | | | | | | | function or something. Since FileRemover takes a const reference to sys::Path, we need to pass an actual sys::Path variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19111 91177308-0d34-0410-b5e6-96231b3b80d8
* Correct compilation for Cygwin. FindExecutable now returns a sys::Path.Reid Spencer2004-12-221-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19109 91177308-0d34-0410-b5e6-96231b3b80d8
* Support the gas option --traditional-format which, for some reason, getsReid Spencer2004-12-221-0/+3
| | | | | | | passed to gccas when the --program-prefix option is used to configure CFE. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19091 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the Win32 buildMisha Brukman2004-12-221-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19088 91177308-0d34-0410-b5e6-96231b3b80d8
* Make parameters to CopyFile use explicit instantiation of sys::Path.Reid Spencer2004-12-221-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19086 91177308-0d34-0410-b5e6-96231b3b80d8
* Use explicit construction of sys::Path from std::string because theReid Spencer2004-12-211-1/+1
| | | | | | | constructor is "explicit". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19078 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow compilers that can't distinguish between a class instantiation andReid Spencer2004-12-201-1/+2
| | | | | | | the declaration of a function to compile this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19073 91177308-0d34-0410-b5e6-96231b3b80d8
* llvm/Config/unistd.h has gone away, far, far awayMisha Brukman2004-12-201-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19068 91177308-0d34-0410-b5e6-96231b3b80d8
* Incorporate the contents of include/llvm/Config/unistd.h as this is theReid Spencer2004-12-201-1/+11
| | | | | | | | last file in LLVM to require the header. After ths commmit, our unistd.h will go away. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19065 91177308-0d34-0410-b5e6-96231b3b80d8
* Use Config/alloca.h instead of alloca.h - pointed out by Duraid and MishaBrian Gaeke2004-12-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19059 91177308-0d34-0410-b5e6-96231b3b80d8
* Make this compile on Solaris.Brian Gaeke2004-12-191-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19047 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-194-39/+48
| | | | | | | * Support changes in sys::Program::ExecuteAndWait interface git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19044 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-191-24/+27
| | | | | | | | | | | * Pass sys::Path instead of std::string for paths * Correct the types of arguments passed to RunProgramWithTimeout due to its interface using sys::Path instead of std::string * Replace "/dev/null" (not portable) with empty string which sys::Program::ExecuteAndWait recognizes as "redirect to bit bucket" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19041 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-191-4/+4
| | | | | | | Turn path instance variables into sys::Path instead of std::string git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19038 91177308-0d34-0410-b5e6-96231b3b80d8
* sys::CopyFile returns void and throws an exception on error which will beReid Spencer2004-12-181-4/+1
| | | | | | | caught by llvm-ld's main function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19030 91177308-0d34-0410-b5e6-96231b3b80d8
* sys::CopyString throws an exception on error which will be caught by gccldReid Spencer2004-12-181-4/+1
| | | | | | | main function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19029 91177308-0d34-0410-b5e6-96231b3b80d8
* The CopyFile function got moved into the sys namespace.Reid Spencer2004-12-182-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19026 91177308-0d34-0410-b5e6-96231b3b80d8
* Reverse the logic for Win32 to ensure that bugpoint and llvm-db are NOTReid Spencer2004-12-171-1/+1
| | | | | | | built on this platform. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19015 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix this file to actually work. ifneq was incorrectly used. Subtract outReid Spencer2004-12-171-9/+6
| | | | | | | | llvm-db and bugpoint for Win32 rather than add them in subtr git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19014 91177308-0d34-0410-b5e6-96231b3b80d8
* Makefile.JIT doesn't exist any more so it doesn't need to be distributed.Reid Spencer2004-12-171-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19009 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable bugpoint and llvm-db tools for Win32. They can't be supported onReid Spencer2004-12-171-2/+10
| | | | | | | | that platform without a lot of work because they depend on process image copy behavior of fork(2). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19008 91177308-0d34-0410-b5e6-96231b3b80d8
* Linking in all of ScalarOpts.Tanya Lattner2004-12-161-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19002 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-167-44/+54
| | | | | | | | | | | | * 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19001 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-162-17/+16
| | | | | | | | | | * Make the OutputC and OutputAsm functions work with sys::Path for the output file name instead of using std::string. * Get rid of extraneous "toString" calls. * Change "removeFile" to sys::Path::destroyFile() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19000 91177308-0d34-0410-b5e6-96231b3b80d8
* No targets actually use this libraryChris Lattner2004-12-161-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18995 91177308-0d34-0410-b5e6-96231b3b80d8
* Unbreak all archive reading operations introduced by the last patch whichReid Spencer2004-12-151-2/+3
| | | | | | | | always exited the program with exit code 1 in these cases, regardless of whether an error occurred or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18966 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not fail an assertion on a broken archiveChris Lattner2004-12-151-1/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18959 91177308-0d34-0410-b5e6-96231b3b80d8
* Change LLVMGCCDIR/bytecode-libs -> LLVMGCCDIR/libReid Spencer2004-12-152-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18951 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-153-3/+0
| | | | | | | Remove #inclusion of Support/FileUtilities.h which isn't needed any more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18950 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-153-20/+34
| | | | | | | * Convert use of getUniqueFilename to sys::Path::makeUnique(); git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18949 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-151-8/+17
| | | | | | | | * Remove #inclusion of FileUtilities.h, not needed any more. * Convert getUniqueFilename -> sys::Pat::makeUnique() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18948 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-144-141/+84
| | | | | | | | * Change ExecWait calls to sys::Program::ExecuteAndWait * Convert to use sys::Path where it makes sense git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18929 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-132-15/+17
| | | | | | | Adjust to interface change for FindExecutable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18920 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-131-5/+5
| | | | | | | | Adjust to changes in the interface of FindExecutable, getting ToolRunner ready for bigger things to come. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18919 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-138-451/+1
| | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18916 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor cleanupsMisha Brukman2004-12-131-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18914 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-132-6/+6
| | | | | | | | Replace MakeFileReadable and MakeFileExecutable (from FileUtilities) with sys::Path::makeReadable and sys::Path:makeExecutable, respectively. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18909 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the loop termination condition clear when building the set of items toReid Spencer2004-12-132-6/+3
| | | | | | | pass to the Linker::LinkInItems function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18894 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351: \Reid Spencer2004-12-131-3/+3
| | | | | | | | | The getFileTimestamp and getFileSize functions have been removed from \ FileUtilities.{h,cpp}. They are replaced by Path::getTimestamp and \ Path::getSize,respectively. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18892 91177308-0d34-0410-b5e6-96231b3b80d8
* Make use of the new Path inserter function.Reid Spencer2004-12-131-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18887 91177308-0d34-0410-b5e6-96231b3b80d8
* PR351: \Reid Spencer2004-12-132-5/+7
| | | | | | | Use sys::Path not FileUtilities to check file types git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18865 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert to use new Linker class interfaceReid Spencer2004-12-132-39/+116
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18864 91177308-0d34-0410-b5e6-96231b3b80d8
* LinkModules is now in the Linker classReid Spencer2004-12-133-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18863 91177308-0d34-0410-b5e6-96231b3b80d8