- Aug 23, 2006
-
-
Reid Spencer authored
Eliminate exception throwing from Path::renamePathOnDisk and adjust its users correspondingly. llvm-svn: 29843
-
Reid Spencer authored
portion fo the program name via sys::Path().getLast(). This makes error messages more readable since this is invariably used only in error messages. Instead of: /path/to/llvm/bin/directory/toolname: error message we will now get: toolname: error message Also, since we always have a program name (even if its defaulted), don't check to see if it is set or not when generating error messages. This eliminates a bunch of constant strings, saving a little under 1K of data. llvm-svn: 29842
-
Reid Spencer authored
Remove exception throwing from Path::getDirectoryContents and its users. llvm-svn: 29841
-
Reid Spencer authored
Remove exceptions from the Path::create*OnDisk methods. Update their users to handle error messages via arguments and result codes. llvm-svn: 29840
-
Reid Spencer authored
Adjust code to compensate for Path class interface change. llvm-svn: 29837
-
Reid Spencer authored
Change the Path::make*OnDisk methods exception free and adjust their usage. llvm-svn: 29836
-
Reid Spencer authored
llvm-svn: 29834
-
- Aug 22, 2006
-
-
Reid Spencer authored
adjust users of it to compensate. llvm-svn: 29831
-
Chris Lattner authored
defines each value# tracked by the interval. This will be used to improve coallescing. llvm-svn: 29830
-
Reid Spencer authored
llvm-svn: 29828
-
Reid Spencer authored
a null pointer when there is an error. llvm-svn: 29827
-
Reid Spencer authored
just return MinTime if that should ever happen. llvm-svn: 29826
-
Reid Spencer authored
Adjust the use of MappedFile to its new non-throwing interface. We just propagate the exceptions if an error occurs. This will get cleaned up later, incrementally. llvm-svn: 29820
-
Reid Spencer authored
Make the Bytecode Reader use setjmp/longjump instead of exceptions to handle errors. The alternative was even uglier than setjmp/longjump as it would impact the interface and workings of nearly every function in the reader. llvm-svn: 29819
-
Reid Spencer authored
Adjust to new interface for MappedFile. Note that the new "throw" statements will be removed later. llvm-svn: 29818
-
Reid Spencer authored
Adjust users of MappedFile to its new non-throwing interface. Note that in most cases the lazy step of just throwing after a call to MappedFile was installed. This was done in the name of incremental changes. Getting rid of the new throw statements will take adjustment of interfaces and propagation of errors to higher levels. Those changes will come in subsequent patches. llvm-svn: 29817
-
Reid Spencer authored
Make MappedFile not throw any exceptions. llvm-svn: 29816
-
Reid Spencer authored
Fix a bug in my last patch that botched file redirection by using explicit scoping of if statements. llvm-svn: 29815
-
Rafael Espindola authored
llvm-svn: 29814
-
Reid Spencer authored
llvm-svn: 29808
-
Chris Lattner authored
llvm-svn: 29805
-
Chris Lattner authored
*** Register mapping *** reg 1024 -> %reg1028 reg 1026 -> EAX reg 1027 -> %reg1028 instead of: *** Register mapping *** reg 1024 -> reg 1028 reg 1026 -> reg 15 reg 1027 -> reg 1028 llvm-svn: 29803
-
Rafael Espindola authored
llvm-svn: 29802
-
- Aug 21, 2006
-
-
Jim Laskey authored
llvm-svn: 29799
-
Jim Laskey authored
llvm-svn: 29798
-
Chris Lattner authored
llvm-svn: 29796
-
Chris Lattner authored
llvm-svn: 29794
-
Rafael Espindola authored
llvm-svn: 29793
-
Bill Wendling authored
MOV R0, R1 MOV R1, R0 the second machine instruction is removed. Added a regression test. llvm-svn: 29792
-
Reid Spencer authored
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
-
Reid Spencer authored
Remove all exception code from Program.inc and implement its new interface with an ErrMsg string argument. llvm-svn: 29790
-
Reid Spencer authored
Make sys::Program::ExecuteAndWait not throw exceptions and update any affected code. It now return -9999 to signal that the program couldn't be executed. Only one case (in bugpoint) actually examines the result code. llvm-svn: 29785
-
- Aug 20, 2006
-
-
Rafael Espindola authored
llvm-svn: 29780
-
- Aug 18, 2006
-
-
Chris Lattner authored
llvm-svn: 29771
-
Chris Lattner authored
llvm-svn: 29770
-
Reid Spencer authored
llvm-svn: 29769
-
Reid Spencer authored
1. Actually turn on -fno-exceptions in libraries that do not have the REQUIRES_EH option in their Makefile. The following library file size savings were made (DEBUG): libLLVMDataStructure.a 525K libLLVMCore.a 380K libLLVMCodeGen.a 350K libLLVMTransformUtils.a 305K libLLVMScalarOpts.a 270K libLLVMAnalysis.a 247K libLLVMSelectionDAG.a 233K libLLVMipo.a 175K LLVMX86.o 123K LLVMPPC.o 81K libLLVMipa.a 17K TOTAL 2,706K Note that the savings is actually a little larger than this because I didn't count any of the libraries that had small changes. 2. Remove REQUIRES_EH from the AsmParser library as it is now exception free. This resulted in a nearly 78K drop in the size of the debug library for AsmParser. llvm-svn: 29767
-
Reid Spencer authored
llvm-svn: 29765
-
Reid Spencer authored
Rid the Assembly Parser of exceptions. This is a really gross hack but it will do until the Assembly Parser is re-written as a recursive descent. The basic premise is that wherever the old "ThrowException" function was called (new name: GenerateError) we set a flag (TriggerError). Every production checks that flag and calls YYERROR if it is set. Additionally, each call to ThrowException in the grammar is replaced with GEN_ERROR which calls GenerateError and then YYERROR immediately. This prevents the remaining production from continuing after an error condition. llvm-svn: 29763
-
Chris Lattner authored
llvm-svn: 29756
-