oota-llvm.git
19 years agoignore generated files.
Chris Lattner [Sun, 21 Nov 2004 00:00:54 +0000 (00:00 +0000)]
ignore generated files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18072 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoIgnore generated files
Chris Lattner [Sun, 21 Nov 2004 00:00:04 +0000 (00:00 +0000)]
Ignore generated files

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18071 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoIgnore files
Chris Lattner [Sat, 20 Nov 2004 23:58:43 +0000 (23:58 +0000)]
Ignore files

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18070 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoImplement relocation support by adding a target independent resolver interface.
Chris Lattner [Sat, 20 Nov 2004 23:57:07 +0000 (23:57 +0000)]
Implement relocation support by adding a target independent resolver interface.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18069 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoRemove all JIT specific code and switch the code generator over to emitting
Chris Lattner [Sat, 20 Nov 2004 23:55:15 +0000 (23:55 +0000)]
Remove all JIT specific code and switch the code generator over to emitting
relocations for global references.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18068 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoImplement the X86 JIT interfaces
Chris Lattner [Sat, 20 Nov 2004 23:54:33 +0000 (23:54 +0000)]
Implement the X86 JIT interfaces

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18067 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoDescribe the X86 target-specific relocations.
Chris Lattner [Sat, 20 Nov 2004 23:54:19 +0000 (23:54 +0000)]
Describe the X86 target-specific relocations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18066 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoWe implement these interfaces
Chris Lattner [Sat, 20 Nov 2004 23:53:56 +0000 (23:53 +0000)]
We implement these interfaces

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18065 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdjust to changed interfaces
Chris Lattner [Sat, 20 Nov 2004 23:53:26 +0000 (23:53 +0000)]
Adjust to changed interfaces

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18064 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoChange this interface a bit
Chris Lattner [Sat, 20 Nov 2004 23:52:43 +0000 (23:52 +0000)]
Change this interface a bit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18063 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdding missing dg file.
Tanya Lattner [Sat, 20 Nov 2004 23:51:38 +0000 (23:51 +0000)]
Adding missing dg file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18062 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoThis method does not exist any longer.
Chris Lattner [Sat, 20 Nov 2004 23:51:03 +0000 (23:51 +0000)]
This method does not exist any longer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18061 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdd new methods that a target should implement
Chris Lattner [Sat, 20 Nov 2004 23:50:02 +0000 (23:50 +0000)]
Add new methods that a target should implement

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18060 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoRemoving unnecessary copies. Use %p to reference them.
Tanya Lattner [Sat, 20 Nov 2004 23:47:23 +0000 (23:47 +0000)]
Removing unnecessary copies. Use %p to reference them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18059 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdd missing #include
Chris Lattner [Sat, 20 Nov 2004 23:40:54 +0000 (23:40 +0000)]
Add missing #include

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18058 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoFixed assertion from triggering. We need to check if the commandline map is empty...
Tanya Lattner [Sat, 20 Nov 2004 23:35:20 +0000 (23:35 +0000)]
Fixed assertion from triggering. We need to check if the commandline map is empty before checking if an arg exists.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18057 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoCast the void* handle data member to HMODULE* to keep the VC++ compiler
Reid Spencer [Sat, 20 Nov 2004 23:30:55 +0000 (23:30 +0000)]
Cast the void* handle data member to HMODULE* to keep the VC++ compiler
happy. Thanks to Henrik Bach for pointing this out.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18056 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoSupport most cases of vaarg (except double).
Brian Gaeke [Sat, 20 Nov 2004 22:50:42 +0000 (22:50 +0000)]
Support most cases of vaarg (except double).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18055 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoUpdate failing test cases & to-do list.
Brian Gaeke [Sat, 20 Nov 2004 22:50:41 +0000 (22:50 +0000)]
Update failing test cases & to-do list.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18054 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoUse llvmc to compile test cases
Reid Spencer [Sat, 20 Nov 2004 21:03:34 +0000 (21:03 +0000)]
Use llvmc to compile test cases

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18053 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoGet the -o option right
Reid Spencer [Sat, 20 Nov 2004 20:45:33 +0000 (20:45 +0000)]
Get the -o option right

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18052 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoGet the -o option right
Reid Spencer [Sat, 20 Nov 2004 20:39:33 +0000 (20:39 +0000)]
Get the -o option right

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18051 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoNot needed any more.
Reid Spencer [Sat, 20 Nov 2004 20:27:20 +0000 (20:27 +0000)]
Not needed any more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18050 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoContent moved to llvm-ld.cpp
Reid Spencer [Sat, 20 Nov 2004 20:15:08 +0000 (20:15 +0000)]
Content moved to llvm-ld.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18049 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoIncorporate GenerateCode.cpp. Make static things static.
Reid Spencer [Sat, 20 Nov 2004 20:02:56 +0000 (20:02 +0000)]
Incorporate GenerateCode.cpp. Make static things static.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18048 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoFirst cut at implementing generic link-time Optimization
Reid Spencer [Sat, 20 Nov 2004 19:43:28 +0000 (19:43 +0000)]
First cut at implementing generic link-time Optimization

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18047 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoThe Archive class now has differentiation for BSD4.4 and SVR4 style archive
Reid Spencer [Sat, 20 Nov 2004 18:01:22 +0000 (18:01 +0000)]
The Archive class now has differentiation for BSD4.4 and SVR4 style archive
symbol tables. Adjust our usage to compensate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18046 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoTest floating point constants
Reid Spencer [Sat, 20 Nov 2004 07:29:51 +0000 (07:29 +0000)]
Test floating point constants

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18045 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoDistinguish between BSD4.4 and SVR4 symbol tables
Reid Spencer [Sat, 20 Nov 2004 07:29:40 +0000 (07:29 +0000)]
Distinguish between BSD4.4 and SVR4 symbol tables

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18044 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAn llvm-ar test.
Reid Spencer [Sat, 20 Nov 2004 07:25:41 +0000 (07:25 +0000)]
An llvm-ar test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18043 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoProvide the srcdir variable.
Reid Spencer [Sat, 20 Nov 2004 07:25:10 +0000 (07:25 +0000)]
Provide the srcdir variable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18042 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoDescribe the Archive test suite.
Reid Spencer [Sat, 20 Nov 2004 07:24:28 +0000 (07:24 +0000)]
Describe the Archive test suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18041 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoContents separated into individual tests.
Reid Spencer [Sat, 20 Nov 2004 07:23:56 +0000 (07:23 +0000)]
Contents separated into individual tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18040 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoThis method was never implemented
Chris Lattner [Sat, 20 Nov 2004 04:19:47 +0000 (04:19 +0000)]
This method was never implemented

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18039 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoRemove this method, it's not clear how it could be implemented indep of 32 or 64...
Chris Lattner [Sat, 20 Nov 2004 04:17:17 +0000 (04:17 +0000)]
Remove this method, it's not clear how it could be implemented indep of 32 or 64-bit mode

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18038 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agogetJITStubForFunction is optional and unimplemented, just remove it for now.
Chris Lattner [Sat, 20 Nov 2004 04:15:38 +0000 (04:15 +0000)]
getJITStubForFunction is optional and unimplemented, just remove it for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18037 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agogetJITStubForFunction is optional and unimplemented, just remove it.
Chris Lattner [Sat, 20 Nov 2004 04:14:44 +0000 (04:14 +0000)]
getJITStubForFunction is optional and unimplemented, just remove it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18036 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdd getCurrentPCOffset() and addRelocation() methods.
Chris Lattner [Sat, 20 Nov 2004 03:46:14 +0000 (03:46 +0000)]
Add getCurrentPCOffset() and addRelocation() methods.
Add stub support for relocations to finishFunction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18035 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdd getCurrentPCOffset() and addRelocation() methods.
Chris Lattner [Sat, 20 Nov 2004 03:44:39 +0000 (03:44 +0000)]
Add getCurrentPCOffset() and addRelocation() methods.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18034 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdd the getRelocationType method that I forgot
Chris Lattner [Sat, 20 Nov 2004 03:43:50 +0000 (03:43 +0000)]
Add the getRelocationType method that I forgot

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18033 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAllow targets to implement relocation support.
Chris Lattner [Sat, 20 Nov 2004 03:43:27 +0000 (03:43 +0000)]
Allow targets to implement relocation support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18032 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoImplement vacopy and vanext.
Brian Gaeke [Sat, 20 Nov 2004 03:32:12 +0000 (03:32 +0000)]
Implement vacopy and vanext.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18031 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdd accessor
Chris Lattner [Sat, 20 Nov 2004 03:11:07 +0000 (03:11 +0000)]
Add accessor

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18030 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoNew file
Chris Lattner [Sat, 20 Nov 2004 03:05:50 +0000 (03:05 +0000)]
New file

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18029 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAllow constructor parameter to override aggregating args; fix spacing
Misha Brukman [Sat, 20 Nov 2004 02:20:27 +0000 (02:20 +0000)]
Allow constructor parameter to override aggregating args; fix spacing

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18028 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoRemove dead #include
Chris Lattner [Sat, 20 Nov 2004 02:17:03 +0000 (02:17 +0000)]
Remove dead #include

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18027 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoIf we're going to mention mv and cp, clearly, we also need `rm'
Misha Brukman [Sat, 20 Nov 2004 01:27:40 +0000 (01:27 +0000)]
If we're going to mention mv and cp, clearly, we also need `rm'

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18026 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoRevert the patch that adds Function* for each 64-bit libc div/mul/rem that we
Misha Brukman [Sat, 20 Nov 2004 00:10:20 +0000 (00:10 +0000)]
Revert the patch that adds Function* for each 64-bit libc div/mul/rem that we
want to do; instead, we can use MachineInstr::addExternalSymbol(char*, bool) and
thus we don't have to modify the Module as we are code generating for it

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18025 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoMade modsched hidden and changed so it matches the style of other options.
Tanya Lattner [Fri, 19 Nov 2004 23:34:33 +0000 (23:34 +0000)]
Made modsched hidden and changed so it matches the style of other options.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18024 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoFix grammar
Misha Brukman [Fri, 19 Nov 2004 23:09:40 +0000 (23:09 +0000)]
Fix grammar

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18023 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoForgot to join srcdir and subdir for complete path for input files.
Tanya Lattner [Fri, 19 Nov 2004 23:00:19 +0000 (23:00 +0000)]
Forgot to join srcdir and subdir for complete path for input files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18022 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdding srcdir arg. Added ability to specify the path to an input file. This is needed...
Tanya Lattner [Fri, 19 Nov 2004 22:46:23 +0000 (22:46 +0000)]
Adding srcdir arg. Added ability to specify the path to an input file. This is needed for when srcdir != objdir.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18021 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdding srcdir arg
Tanya Lattner [Fri, 19 Nov 2004 22:45:25 +0000 (22:45 +0000)]
Adding srcdir arg

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18020 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdd protoypes for 64-bit long/ulong div, mul, and rem functions
Misha Brukman [Fri, 19 Nov 2004 22:14:35 +0000 (22:14 +0000)]
Add protoypes for 64-bit long/ulong div, mul, and rem functions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18019 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoFix file comment header
Misha Brukman [Fri, 19 Nov 2004 22:09:21 +0000 (22:09 +0000)]
Fix file comment header

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18018 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoIgnore files generated by pod2html
Misha Brukman [Fri, 19 Nov 2004 21:54:43 +0000 (21:54 +0000)]
Ignore files generated by pod2html

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18017 91177308-0d34-0410-b5e6-96231b3b80d8

19 years ago* Remove disk space requirements, they vary wildly, depend on the number of
Misha Brukman [Fri, 19 Nov 2004 21:53:22 +0000 (21:53 +0000)]
* Remove disk space requirements, they vary wildly, depend on the number of
  tools built, the build type, and we don't keep them up-to-date on all
  platforms
* AIX, Linux on PowerPC aren't fully-supported systems

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18016 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoHandle GhostLinkage case for completeness (should not be seen by the asm writer)
Misha Brukman [Fri, 19 Nov 2004 21:49:19 +0000 (21:49 +0000)]
Handle GhostLinkage case for completeness (should not be seen by the asm writer)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18015 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoTest case for reading MacOSX archives.
Reid Spencer [Fri, 19 Nov 2004 21:30:15 +0000 (21:30 +0000)]
Test case for reading MacOSX archives.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18014 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoMacOSX test archive (buggy).
Reid Spencer [Fri, 19 Nov 2004 21:29:45 +0000 (21:29 +0000)]
MacOSX test archive (buggy).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18013 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdd VANext and VAArg stubs.
Brian Gaeke [Fri, 19 Nov 2004 21:08:18 +0000 (21:08 +0000)]
Add VANext and VAArg stubs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18012 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoImplement va_start.
Brian Gaeke [Fri, 19 Nov 2004 20:57:24 +0000 (20:57 +0000)]
Implement va_start.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18011 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoDont' forget to switch back to decimal output
Chris Lattner [Fri, 19 Nov 2004 20:57:07 +0000 (20:57 +0000)]
Dont' forget to switch back to decimal output

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18010 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoMatch change in MachineCodeEmitter prototype.
Chris Lattner [Fri, 19 Nov 2004 20:56:46 +0000 (20:56 +0000)]
Match change in MachineCodeEmitter prototype.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18009 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoExternal symbols are const char*'s now, change this to match.
Chris Lattner [Fri, 19 Nov 2004 20:56:22 +0000 (20:56 +0000)]
External symbols are const char*'s now, change this to match.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18008 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoInstead of storing std::string's for ExternalSymbol references, rely on the
Chris Lattner [Fri, 19 Nov 2004 20:46:15 +0000 (20:46 +0000)]
Instead of storing std::string's for ExternalSymbol references, rely on the
fact that all ExternalSymbols are actually string literals with static storage.
Thus we don't have to do anything special to hold them and we certainly don't
have to copy string data around.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18007 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoFirst part of varargs support: getting all varargs which could possibly
Brian Gaeke [Fri, 19 Nov 2004 20:31:08 +0000 (20:31 +0000)]
First part of varargs support: getting all varargs which could possibly
be in registers into memory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18006 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoFix a bug that caused stuff like this:
Chris Lattner [Fri, 19 Nov 2004 19:45:44 +0000 (19:45 +0000)]
Fix a bug that caused stuff like this:
main at ./eh.cpp:1414 ->          printf("a\n");

to be printed, instead of this:

main at ./eh.cpp:14
14 ->          printf("a\n");

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18005 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agova_end can safely be codegen'd to nothing on v8.
Brian Gaeke [Fri, 19 Nov 2004 19:21:34 +0000 (19:21 +0000)]
va_end can safely be codegen'd to nothing on v8.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18004 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoA very sorry stub implementation of varargs intrinsics...
Brian Gaeke [Fri, 19 Nov 2004 18:53:59 +0000 (18:53 +0000)]
A very sorry stub implementation of varargs intrinsics...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18003 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoUpdate list of expected test failures.
Brian Gaeke [Fri, 19 Nov 2004 18:48:29 +0000 (18:48 +0000)]
Update list of expected test failures.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18002 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoFix bug in casting to long/ulong.
Brian Gaeke [Fri, 19 Nov 2004 18:48:10 +0000 (18:48 +0000)]
Fix bug in casting to long/ulong.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18001 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoMake sure we can read an archive after it has been ranlib'd
Reid Spencer [Fri, 19 Nov 2004 18:44:31 +0000 (18:44 +0000)]
Make sure we can read an archive after it has been ranlib'd

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18000 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoFix memory leaks, patch contributed by Morten Ofstad!
Chris Lattner [Fri, 19 Nov 2004 17:09:48 +0000 (17:09 +0000)]
Fix memory leaks, patch contributed by Morten Ofstad!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17999 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoPatches to avoid "leaking" memory on process exit. Patch contributed by
Chris Lattner [Fri, 19 Nov 2004 17:08:15 +0000 (17:08 +0000)]
Patches to avoid "leaking" memory on process exit.  Patch contributed by
Morten Ofstad!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17998 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoCorrect the computation of when to add the padding. It is not based on the
Reid Spencer [Fri, 19 Nov 2004 17:08:00 +0000 (17:08 +0000)]
Correct the computation of when to add the padding. It is not based on the
member's size. It is based on the oddness/evenness of the file pointer.
This fixes a bug with llvm-ar not being able to read archives produced by
llvm-ranlib when there are members with odd long file name lengths.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17997 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoFix the exposed prototype for the lower packed pass, thanks to
Chris Lattner [Fri, 19 Nov 2004 16:49:34 +0000 (16:49 +0000)]
Fix the exposed prototype for the lower packed pass, thanks to
Morten Ofstad.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17996 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdd hooks to free all memory allocated by the singleton factories in these
Chris Lattner [Fri, 19 Nov 2004 16:39:44 +0000 (16:39 +0000)]
Add hooks to free all memory allocated by the singleton factories in these
files.  Patch contributed by Morten Ofstad!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17995 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdd static functions to clear singleton maps. Patch contributed by
Chris Lattner [Fri, 19 Nov 2004 16:39:04 +0000 (16:39 +0000)]
Add static functions to clear singleton maps.  Patch contributed by
Morten Ofstad!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17994 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoThese methods are long gone, ConstantPointerRef is dead.
Chris Lattner [Fri, 19 Nov 2004 16:25:42 +0000 (16:25 +0000)]
These methods are long gone, ConstantPointerRef is dead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17993 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoCPR is dead.
Chris Lattner [Fri, 19 Nov 2004 16:24:57 +0000 (16:24 +0000)]
CPR is dead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17992 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAdd note that this is for old bytecode files.
Chris Lattner [Fri, 19 Nov 2004 16:24:05 +0000 (16:24 +0000)]
Add note that this is for old bytecode files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17991 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoMission accomplished!
Chris Lattner [Fri, 19 Nov 2004 16:22:24 +0000 (16:22 +0000)]
Mission accomplished!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17990 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoAllow this to compile even on machines that HAVE the bzlib library but do
Reid Spencer [Fri, 19 Nov 2004 15:56:28 +0000 (15:56 +0000)]
Allow this to compile even on machines that HAVE the bzlib library but do
NOT have the bzlib.h header file. Go figure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17989 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoThis is a horrible hack to work around libstdc++ bugs :(
Chris Lattner [Fri, 19 Nov 2004 08:44:07 +0000 (08:44 +0000)]
This is a horrible hack to work around libstdc++ bugs :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17988 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoEliminate another 6k register copies that the register allocator would just
Nate Begeman [Fri, 19 Nov 2004 08:01:16 +0000 (08:01 +0000)]
Eliminate another 6k register copies that the register allocator would just
coalesce out of hbd.  Speeds up compilation by 2% (0.6s)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17987 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoFix a bug in the checkin where I adjusted this code to work when
Chris Lattner [Fri, 19 Nov 2004 07:09:40 +0000 (07:09 +0000)]
Fix a bug in the checkin where I adjusted this code to work when
LinkModules nukes the second module argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17986 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoUndo last change as its unnecessary.
Reid Spencer [Fri, 19 Nov 2004 04:59:07 +0000 (04:59 +0000)]
Undo last change as its unnecessary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17985 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoTest case for xpg4 style archive files.
Reid Spencer [Fri, 19 Nov 2004 04:46:10 +0000 (04:46 +0000)]
Test case for xpg4 style archive files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17984 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoTest reading of SVR4 style archives with llvm-ar
Reid Spencer [Fri, 19 Nov 2004 04:45:19 +0000 (04:45 +0000)]
Test reading of SVR4 style archives with llvm-ar

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17983 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoTest case for reading SVR4 style archives.
Reid Spencer [Fri, 19 Nov 2004 04:33:13 +0000 (04:33 +0000)]
Test case for reading SVR4 style archives.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17982 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoDon't save an iterator, just use post-increment.
Reid Spencer [Fri, 19 Nov 2004 03:44:10 +0000 (03:44 +0000)]
Don't save an iterator, just use post-increment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17981 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoSolaris built archives in SVR4 and XPG4 styles.
Reid Spencer [Fri, 19 Nov 2004 03:41:57 +0000 (03:41 +0000)]
Solaris built archives in SVR4 and XPG4 styles.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17980 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoEliminate unsightly ;;
Reid Spencer [Fri, 19 Nov 2004 03:27:05 +0000 (03:27 +0000)]
Eliminate unsightly ;;

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17979 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoA test file that goes into the test archive.
Reid Spencer [Fri, 19 Nov 2004 03:24:02 +0000 (03:24 +0000)]
A test file that goes into the test archive.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17978 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoMake a cast explicit.
Reid Spencer [Fri, 19 Nov 2004 03:20:09 +0000 (03:20 +0000)]
Make a cast explicit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17977 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoMake findModulesDefiningSymbols modify its symbols argument so we can \
Reid Spencer [Fri, 19 Nov 2004 03:18:22 +0000 (03:18 +0000)]
Make findModulesDefiningSymbols modify its symbols argument so we can \
eliminate symbols defined by the archive efficiently

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17976 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoReduce the amount of work in LinkInArchive by not searching the archive for
Reid Spencer [Fri, 19 Nov 2004 03:13:25 +0000 (03:13 +0000)]
Reduce the amount of work in LinkInArchive by not searching the archive for
symbols it has already identified as not defining.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17975 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoObligatory DejaGnu/expect file.
Reid Spencer [Fri, 19 Nov 2004 02:26:35 +0000 (02:26 +0000)]
Obligatory DejaGnu/expect file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17974 91177308-0d34-0410-b5e6-96231b3b80d8

19 years agoGenerate fewer reg-reg copies for the register allocator to deal with.
Nate Begeman [Fri, 19 Nov 2004 02:06:40 +0000 (02:06 +0000)]
Generate fewer reg-reg copies for the register allocator to deal with.
This eliminates over 2000 in hbd alone.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17973 91177308-0d34-0410-b5e6-96231b3b80d8