summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvmc/CompilerDriver.cpp
Commit message (Collapse)AuthorAgeFilesLines
* remove attributions from tools.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45421
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-11/+11
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* use the new MemoryBuffer interfaces to simplify error reporting in clients.Chris Lattner2007-05-061-2/+1
| | | | llvm-svn: 36900
* switch tools to bitcode instead of bytecodeChris Lattner2007-05-061-15/+6
| | | | llvm-svn: 36868
* add bitcode support, optimize reading to not read all function bodies justChris Lattner2007-05-061-4/+16
| | | | | | to get deplibs llvm-svn: 36851
* Make TempDir a PathWithStatus so we don't have to cast it to one.Reid Spencer2007-04-081-3/+2
| | | | llvm-svn: 35772
* For PR1291:Reid Spencer2007-04-071-1/+2
| | | | | | | Change uses of sys::Path class to sys::PathWithStatus in those places where the file status information is needed. llvm-svn: 35743
* For PR789:Reid Spencer2007-03-291-2/+2
| | | | | | | | Make the sys::Path::getFileStatus function more efficient by having it return a pointer to the FileStatus structure rather than copy it. Adjust uses of the function accordingly. Also, fix some memory issues in sys::Path. llvm-svn: 35476
* Add possibility to set memory limit for binaries run via libSystem. ThisAnton Korobeynikov2007-02-161-2/+2
| | | | | | is especially needed for bugpoint. This partly implements PR688 llvm-svn: 34349
* move an llvmc-specific function out of the bcreader into llvmc.Chris Lattner2007-02-071-0/+17
| | | | llvm-svn: 34021
* push bytecode decompressor out through APIs. Now the bytecode readerChris Lattner2007-02-071-1/+3
| | | | | | | | | | | | | | | | | | | | api's look like this: ModuleProvider *getBytecodeModuleProvider( const std::string &Filename, ///< Name of file to be read BCDecompressor_t *BCDC = Compressor::decompressToNewBuffer, std::string* ErrMsg = 0, ///< Optional error message holder BytecodeHandler* H = 0 ///< Optional handler for reader events ); This is ugly, but allows a client to say: getBytecodeModuleProvider("foo", 0); If they do this, there is no dependency on the compression libraries, saving codesize. llvm-svn: 34012
* For PR786:Reid Spencer2006-11-021-7/+0
| | | | | | | | | | Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting fall out by removing unused variables. Remaining warnings have to do with unused functions (I didn't want to delete code without review) and unused variables in generated code. Maintainers should clean up the remaining issues when they see them. All changes pass DejaGnu tests and Olden. llvm-svn: 31380
* For PR797:Reid Spencer2006-08-251-2/+3
| | | | | | | Remove exception throwing/handling from lib/Bytecode, and adjust its users to compensate for changes in the interface. llvm-svn: 29875
* Make the sys::Path::GetTemporaryDirectory method not throw exceptions andReid Spencer2006-08-221-10/+30
| | | | | | adjust users of it to compensate. llvm-svn: 29831
* For PR797:Reid Spencer2006-08-211-10/+14
| | | | | | | | Adjust usage of the ExecuteAndWait function to use the last argument which is the ErrMsg string. This is necessitated because this function no longer throws exceptions on error. llvm-svn: 29791
* Patches to correct several bugs in llvmc.Reid Spencer2006-08-161-4/+49
| | | | | | Patches contributed by Bram Adams. Thanks Bram. llvm-svn: 29729
* No need to check isWriteable here (which isn't sufficient anyway). Just attemptChris Lattner2006-08-011-1/+2
| | | | | | to do the operation and if it fails, oh well. llvm-svn: 29446
* silly cleanupChris Lattner2006-05-291-1/+1
| | | | llvm-svn: 28543
* Eliminate all remaining tabs and trailing spaces.Jeff Cohen2005-07-271-1/+1
| | | | llvm-svn: 22523
* Final Changes For PR495:Reid Spencer2005-07-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This chagne just renames some sys::Path methods to ensure they are not misused. The Path documentation now divides methods into two dimensions: Path/Disk and accessor/mutator. Path accessors and mutators only operate on the Path object itself without making any disk accesses. Disk accessors and mutators will also access or modify the file system. Because of the potentially destructive nature of disk mutators, it was decided that all such methods should end in the work "Disk" to ensure the user recognizes that the change will occur on the file system. This patch makes that change. The method name changes are: makeReadable -> makeReadableOnDisk makeWriteable -> makeWriteableOnDisk makeExecutable -> makeExecutableOnDisk setStatusInfo -> setStatusInfoOnDisk createDirectory -> createDirectoryOnDisk createFile -> createFileOnDisk createTemporaryFile -> createTemporaryFileOnDisk destroy -> eraseFromDisk rename -> renamePathOnDisk These changes pass the Linux Deja Gnu tests. llvm-svn: 22354
* For PR495:Reid Spencer2005-07-071-15/+15
| | | | | | | | | | | | | | | | | | | | | Get rid of the difference between file paths and directory paths. The Path class now simply stores a path that can refer to either a file or a directory. This required various changes in the implementation and interface of the class with the corresponding impact to its users. Doxygen comments were also updated to reflect these changes. Interface changes are: appendDirectory -> appendComponent appendFile -> appendComponent elideDirectory -> eraseComponent elideFile -> eraseComponent elideSuffix -> eraseSuffix renameFile -> rename setDirectory -> set setFile -> set Changes pass Dejagnu and llvm-test/SingleSource tests. llvm-svn: 22349
* For PR495:Reid Spencer2005-07-071-9/+9
| | | | | | | | | | | Change interface to Path class: readable -> canRead writable -> canWrite executable -> canExecute More (incremental) changes coming to close 495. llvm-svn: 22345
* For PR514:Reid Spencer2005-05-191-1/+33
| | | | | | | | | | * language specification files are no longer configured with "configure" * add substitutions for %bindir%, %libdir%, and various llvmgcc related variables needed in the c and cpp spec files. * Implement the stubstituions in the Compiler Driver. * Move st.in to projects/Stacker/tools/stkrc where it belongs. llvm-svn: 22128
* Minor clean-upsMisha Brukman2005-05-031-15/+13
| | | | llvm-svn: 21678
* Remove trailing whitespaceMisha Brukman2005-04-221-41/+41
| | | | llvm-svn: 21428
* #include system headers after all LLVM headersMisha Brukman2005-04-201-2/+1
| | | | llvm-svn: 21374
* Ensure that the arguments passed to sys::Program::ExecuteAndWait includeReid Spencer2005-04-111-2/+3
| | | | | | | the program name as the first argument. Thanks go to Markus Oberhumer for noticing this problem. llvm-svn: 21220
* Conform to the documented interface by null terminating argument lists!Chris Lattner2005-02-131-7/+5
| | | | llvm-svn: 20167
* Use Config/alloca.h instead of alloca.h - pointed out by Duraid and MishaBrian Gaeke2004-12-201-1/+1
| | | | llvm-svn: 19059
* Make this compile on Solaris.Brian Gaeke2004-12-191-0/+1
| | | | llvm-svn: 19047
* For PR351:Reid Spencer2004-12-191-8/+13
| | | | | | * Support changes in sys::Program::ExecuteAndWait interface llvm-svn: 19044
* Make use of the new Path inserter function.Reid Spencer2004-12-131-3/+3
| | | | llvm-svn: 18887
* PR351: \Reid Spencer2004-12-131-2/+3
| | | | | | Use sys::Path not FileUtilities to check file types llvm-svn: 18865
* Path::get -> Path::toStringReid Spencer2004-12-111-33/+34
| | | | llvm-svn: 18785
* * Don't pass empty arguments to ExecuteAndWait because it can cause theReid Spencer2004-11-231-41/+56
| | | | | | | | | | | sub-tool to start reading its standard input instead of the specified input. * Clean up ouput of path names on error. * Extend GetPathForLinkageItem to always search the LibraryPaths and thus make it suitable for an interface function (required by llvmc.cpp). * Implement support for language-specific default library paths. llvm-svn: 18188
* Get the -o option rightReid Spencer2004-11-201-21/+43
| | | | llvm-svn: 18051
* Stop propagating method names that violate the coding standardReid Spencer2004-11-051-40/+45
| | | | llvm-svn: 17498
* Implement linking.Reid Spencer2004-10-281-735/+746
| | | | llvm-svn: 17297
* Support the -WX, -f -M options as pass throughsReid Spencer2004-09-141-91/+184
| | | | | | | | Change force option from -f to -F Support the -strip option Make changes to reflect different interface in sys::Program llvm-svn: 16325
* Changes For Bug 352Reid Spencer2004-09-011-3/+3
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* Implement the "setIncludePaths" and "setSymbolDefines" interface methods.Reid Spencer2004-08-301-42/+130
| | | | | | | Revise token substitution to be a little faster. Clean up exception throwing, make sure its always a std::string. llvm-svn: 16116
* Add a missing header fileReid Spencer2004-08-291-0/+1
| | | | llvm-svn: 16099
* Convert llvmc to use the lib/System interface instead of directlyReid Spencer2004-08-291-519/+564
| | | | | | using Unix operating system calls. llvm-svn: 16089
* Run the compilation actions before we attempt linking work.Reid Spencer2004-08-241-42/+99
| | | | | | | Correctly implement the dependent libraries feature so that linked bytecode files automatically include any dependent libraries they specify. llvm-svn: 16042
* - Remove unused GetSuffix functionReid Spencer2004-08-241-78/+118
| | | | | | | | | | | | - Renamed FileReadable -> FileIsReadable - Remove support for GROKS_DASH_O; deferr it to %opts% substitution - Require a -o option except in case of linking where it defaults to a.out - Fix problem processing *.o and *.bc files. - Ignore optimization phase if -emit-raw-code - Correct the assembly generation phase to support -emit-native-code - Implement dependent library lookup llvm-svn: 16020
* Change @ -> % in config files. @name@ might be needed for config files toReid Spencer2004-08-201-7/+7
| | | | | | | themselves be configured via autoconf so its not a good substitition syntax for llvmc. Furthermore % is more llvmish :) llvm-svn: 15957
* Implement Assembly support.Reid Spencer2004-08-201-14/+39
| | | | | | Consolidate platform-specific code into "sys" namespace. llvm-svn: 15947
* Implement many new features for llvmc. This is the first version that willReid Spencer2004-08-191-132/+252
| | | | | | actually execute actions and it is been shown to optimize a Stacker program llvm-svn: 15912
* Back out dependencies on lib/System/Path.hReid Spencer2004-08-161-22/+29
| | | | llvm-svn: 15815
* More Functionality:Reid Spencer2004-08-151-31/+163
| | | | | | | | | | - cleaned up lexical scanner - added support for "lang.optN" configuration items - added temporary file support (ala lib/System) - corrected logic for deciding which phases to run - consolidated the Action and ActionPattern classes llvm-svn: 15765
OpenPOWER on IntegriCloud