oota-llvm.git
19 years agoFor PR351:
Reid Spencer [Mon, 27 Dec 2004 06:14:48 +0000 (06:14 +0000)]
For PR351:
Provide a check to determine if /dev/zero is needed for AllocateRWX function.

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

19 years agoOops, reverse the logic on a test for WITH_LLVMGCCDIR to make it define
Reid Spencer [Mon, 27 Dec 2004 03:15:28 +0000 (03:15 +0000)]
Oops, reverse the logic on a test for WITH_LLVMGCCDIR to make it define
the path names correctly.

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

19 years agoProvide a value for HAVE_MMAP_ANONYMOUS variable, for consistency with
Reid Spencer [Mon, 27 Dec 2004 03:14:43 +0000 (03:14 +0000)]
Provide a value for HAVE_MMAP_ANONYMOUS variable, for consistency with
other #define's.

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

19 years agoDescribe the --with-llvmgccdir option to configure.
Reid Spencer [Sun, 26 Dec 2004 05:47:26 +0000 (05:47 +0000)]
Describe the --with-llvmgccdir option to configure.

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

19 years agoRevert the last patch so that the LLVMGCCDIR environment variable is
Reid Spencer [Sun, 26 Dec 2004 05:21:13 +0000 (05:21 +0000)]
Revert the last patch so that the LLVMGCCDIR environment variable is
still viable and will make use of the resurrected --with-llvmgccdir
configure option.

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

19 years agoFor PR351:
Reid Spencer [Sat, 25 Dec 2004 07:31:29 +0000 (07:31 +0000)]
For PR351:
* Make sure all headers used by lib/System have checks
* Use "standard" autoconf checks for certain problematic headers
For PR432:
* Resurrect --with-llvmgccdir so a specific llvm-gcc/llvm-g++ installation
  can be specified.

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

19 years agomingw doesn't support the official debug API.
Jeff Cohen [Sat, 25 Dec 2004 04:50:17 +0000 (04:50 +0000)]
mingw doesn't support the official debug API.

Old versions of the C runtime somehow get loaded into the process.  Make
sure they aren't searched for symbols.

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

19 years agoGet VC++ building again
Jeff Cohen [Fri, 24 Dec 2004 16:26:47 +0000 (16:26 +0000)]
Get VC++ building again

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

19 years agoIgnore the autom4te.cache directoy.
Reid Spencer [Fri, 24 Dec 2004 15:11:23 +0000 (15:11 +0000)]
Ignore the autom4te.cache directoy.

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

19 years agoMake sure llvm-g++ gets the right path for the llvm tools.
Reid Spencer [Fri, 24 Dec 2004 14:47:34 +0000 (14:47 +0000)]
Make sure llvm-g++ gets the right path for the llvm tools.

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

19 years agoEliminate use of ltdl.c when doing a VC++ build. Because libtool isn't used,
Jeff Cohen [Fri, 24 Dec 2004 07:57:09 +0000 (07:57 +0000)]
Eliminate use of ltdl.c when doing a VC++ build.  Because libtool isn't used,
ltdl's LGPL license would infect all of LLVM.

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

19 years agoMake the symbolic link using the correct variable!
Reid Spencer [Fri, 24 Dec 2004 06:49:16 +0000 (06:49 +0000)]
Make the symbolic link using the correct variable!

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

19 years agoRemove references to LLVMGCCDIR because it was only used to provide a
Reid Spencer [Fri, 24 Dec 2004 06:32:54 +0000 (06:32 +0000)]
Remove references to LLVMGCCDIR because it was only used to provide a
value for the --with-llvmgccdir configure option which is no longer
supported.

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

19 years agoFor PR351:
Reid Spencer [Fri, 24 Dec 2004 06:29:42 +0000 (06:29 +0000)]
For PR351:
Merge implementations of isValid and GetTemporaryDirectory into this file. There
is not any point having the operating system specific files for such little
variation between the Unix family of systems.

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

19 years agoFor PR351:
Reid Spencer [Fri, 24 Dec 2004 06:29:28 +0000 (06:29 +0000)]
For PR351:
This implementation is no longer needed, its been merged to Unix/Path.cpp since
there is such little variation between the platforms.

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

19 years agoFor PR351:
Reid Spencer [Fri, 24 Dec 2004 06:29:17 +0000 (06:29 +0000)]
For PR351:
Use the LLVM_ON_UNIX and LLVM_ON_WIN32 #defines to include the implementation
instead of relying upon the "platform" link

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

19 years agoFor PR351:
Reid Spencer [Fri, 24 Dec 2004 06:29:05 +0000 (06:29 +0000)]
For PR351:
Create new variables LLVM_ON_UNIX and LLVM_ON_WIN32 so we can start getting
rid of reliance upon a symbolic link to switch implementations in lib/System

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

19 years agoResurrect this file.
Reid Spencer [Fri, 24 Dec 2004 06:03:31 +0000 (06:03 +0000)]
Resurrect this file.

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

19 years agoRemove these files as they are not being included any more. DynamicLibrary
Reid Spencer [Fri, 24 Dec 2004 03:59:46 +0000 (03:59 +0000)]
Remove these files as they are not being included any more. DynamicLibrary
is now implemented via ltdl.cpp which has its own way of dealing with
the different platforms.

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

19 years agoMake sure LLVMGCCWITHPATH is used instead of just LLVMGCC so that the
Reid Spencer [Fri, 24 Dec 2004 03:44:24 +0000 (03:44 +0000)]
Make sure LLVMGCCWITHPATH is used instead of just LLVMGCC so that the
CFE tools can find the correct LLVM tools to invoke.

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

19 years agoThe dejagnu scripts need a path for llvm-gcc/llvm-g++ as well so use the
Reid Spencer [Fri, 24 Dec 2004 03:38:01 +0000 (03:38 +0000)]
The dejagnu scripts need a path for llvm-gcc/llvm-g++ as well so use the
correct variable to get a "set the path first" invocation of those tools.

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

19 years agoTwo corrections:
Reid Spencer [Fri, 24 Dec 2004 03:36:31 +0000 (03:36 +0000)]
Two corrections:
* When reconfiguring, make sure the config.cache file is blown away so that
  its (old) values don't short-circuit doing the tests. When a reconfigure
  is done, it should be done from scratch, without the cache.
* For dist-check, don't pass --with-llvmgccdir any more because configure
  doesn't have this option any more.

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

19 years agoChange llvmgcc/llvmg++ to llvm-gcc and llvm-g++ respectively.
Reid Spencer [Fri, 24 Dec 2004 03:34:31 +0000 (03:34 +0000)]
Change llvmgcc/llvmg++ to llvm-gcc and llvm-g++ respectively.

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

19 years agoFix VC++ compilation error
Jeff Cohen [Fri, 24 Dec 2004 02:38:34 +0000 (02:38 +0000)]
Fix VC++ compilation error

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

19 years agoFix a bug in libtool's ltmain.sh. On Cygwin the "$output.exp" expression
Reid Spencer [Fri, 24 Dec 2004 00:15:20 +0000 (00:15 +0000)]
Fix a bug in libtool's ltmain.sh. On Cygwin the "$output.exp" expression
expands to a full path name. Substitute $outputname.exp" instead and it
makes a viable temporary file name. This gets around the problem with lli
on Cygwin linking but not having any "C" library functions linked into it.

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

19 years agoPut CopyFile in the sys namespace.
Reid Spencer [Thu, 23 Dec 2004 22:14:32 +0000 (22:14 +0000)]
Put CopyFile in the sys namespace.

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

19 years agoWrap at 80 cols
Misha Brukman [Thu, 23 Dec 2004 21:17:41 +0000 (21:17 +0000)]
Wrap at 80 cols

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

19 years agoCorrect the comments and file header.
Reid Spencer [Thu, 23 Dec 2004 21:16:46 +0000 (21:16 +0000)]
Correct the comments and file header.

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

19 years agoTry to speed up gccld hot spot in BasicVN::getEqualNumberNodes by making
Reid Spencer [Thu, 23 Dec 2004 21:13:26 +0000 (21:13 +0000)]
Try to speed up gccld hot spot in BasicVN::getEqualNumberNodes by making
a function call at the core of the loop inline and removing unused
stack variables from an often called function. This doesn't improve things
much, the real saving will be by reducing the number of calls to this
function (100K+ when linking kimwitu++).

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

19 years agoUpdate the amd64 target detection checks.
Reid Spencer [Thu, 23 Dec 2004 21:08:52 +0000 (21:08 +0000)]
Update the amd64 target detection checks.
Patch contributed by Markus F.X.J. Oberhumer.

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

19 years agoAdd a caution about using experimental versions of gnu binutils when
Reid Spencer [Thu, 23 Dec 2004 19:49:54 +0000 (19:49 +0000)]
Add a caution about using experimental versions of gnu binutils when
building Cygwin.

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

19 years agoBe specific about version of GCC and binutils on Cygwin since it matters.
Reid Spencer [Thu, 23 Dec 2004 19:39:54 +0000 (19:39 +0000)]
Be specific about version of GCC and binutils on Cygwin since it matters.

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

19 years agoLLVM now builds and runs on Linux/amd64, but we don't have 64-bit codegen yet
Misha Brukman [Thu, 23 Dec 2004 07:14:56 +0000 (07:14 +0000)]
LLVM now builds and runs on Linux/amd64, but we don't have 64-bit codegen yet

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

19 years agoAllow llc to recognize -march=x86. As it was, it didn't recognize any
Jeff Cohen [Thu, 23 Dec 2004 06:45:32 +0000 (06:45 +0000)]
Allow llc to recognize -march=x86.  As it was, it didn't recognize any
architecture at all.

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

19 years agoAdded support for detection of amd64 targets.
Reid Spencer [Thu, 23 Dec 2004 06:22:33 +0000 (06:22 +0000)]
Added support for detection of amd64 targets.

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

19 years agoPatch to fix mingw compilation problem contributed by Henrik.
Jeff Cohen [Thu, 23 Dec 2004 03:44:40 +0000 (03:44 +0000)]
Patch to fix mingw compilation problem contributed by Henrik.

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

19 years agoFix the build on PowerPC/Darwin - it thought we were declaring a new
Brian Gaeke [Wed, 22 Dec 2004 22:33:33 +0000 (22:33 +0000)]
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.

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

19 years ago* Remove an unnecessary step.
Reid Spencer [Wed, 22 Dec 2004 16:19:05 +0000 (16:19 +0000)]
* Remove an unnecessary step.
* Correct a path.

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

19 years agoCorrect compilation for Cygwin. FindExecutable now returns a sys::Path.
Reid Spencer [Wed, 22 Dec 2004 13:50:17 +0000 (13:50 +0000)]
Correct compilation for Cygwin. FindExecutable now returns a sys::Path.

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

19 years agoFor PR351:
Reid Spencer [Wed, 22 Dec 2004 10:25:06 +0000 (10:25 +0000)]
For PR351:
Include local FDHandle.h file now that FDHandle is local to this library
and not in lib/System/FileUtilities.

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

19 years agoFor PR351:
Reid Spencer [Wed, 22 Dec 2004 10:24:55 +0000 (10:24 +0000)]
For PR351:
FDHandle class (non-portable) moved here from lib/Support/FileUtilities

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

19 years agoFor PR351:
Reid Spencer [Wed, 22 Dec 2004 10:24:43 +0000 (10:24 +0000)]
For PR351:
Move non-portable FDHandle class to its only user: lib/Debugger

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

19 years agoAdd a blurb about using the GCC 3.4.3 compiler on Cygwin (which works) for
Reid Spencer [Wed, 22 Dec 2004 09:52:30 +0000 (09:52 +0000)]
Add a blurb about using the GCC 3.4.3 compiler on Cygwin (which works) for
the CFE instead of the default GCC 3.3.3 compiler that comes with Cygwin.

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

19 years agoFor PR432:
Reid Spencer [Wed, 22 Dec 2004 09:07:51 +0000 (09:07 +0000)]
For PR432:
* Remove the idiotic windows environment setting, its not needed.
* Remove an extraneous "mkdir" instruction.

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

19 years agoHopefully fix a link.
Reid Spencer [Wed, 22 Dec 2004 06:48:03 +0000 (06:48 +0000)]
Hopefully fix a link.

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

19 years agoFix the names of these executables now that they've been somewhat cast in
Reid Spencer [Wed, 22 Dec 2004 06:47:25 +0000 (06:47 +0000)]
Fix the names of these executables now that they've been somewhat cast in
stone.

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

19 years agoCorrect the name of the executables to which llvmgcc and llvmgxx variables
Reid Spencer [Wed, 22 Dec 2004 06:45:24 +0000 (06:45 +0000)]
Correct the name of the executables to which llvmgcc and llvmgxx variables
point to.

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

19 years agoFor PR432:
Reid Spencer [Wed, 22 Dec 2004 06:40:29 +0000 (06:40 +0000)]
For PR432:
Rework the CFE build details to include the directions for using the
option --program-prefix=llvm- to the CFE's configure script. This ensures
that the CFE builds unique executable names and makes it possible to put
the $CFEINSTALL/bin directory into one's path.

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

19 years agoFor PR432:
Reid Spencer [Wed, 22 Dec 2004 06:29:07 +0000 (06:29 +0000)]
For PR432:
* llvmgcc -> llvm-gcc
* llvmg++ -> llvm-g++
* remove references to --with-llvmgccdir configure option

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

19 years agoFor PR432:
Reid Spencer [Wed, 22 Dec 2004 05:57:50 +0000 (05:57 +0000)]
For PR432:
* Use LLVMGCC and LLVMGXX variables instead of computing the name

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

19 years agoFor PR432:
Reid Spencer [Wed, 22 Dec 2004 05:57:33 +0000 (05:57 +0000)]
For PR432:
* Variable name change: cferuntime_libdir -> CFERuntimeLibDir

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

19 years agoFor PR432:
Reid Spencer [Wed, 22 Dec 2004 05:57:21 +0000 (05:57 +0000)]
For PR432:
* Cleanup LLVMGCXX and LLVMGCC by providing LLVMGXXWITHPATH and LLVMGCCWITHPATH
  variables that add the $(LLVMToolDir) to the path so the CFE tools can find
  the right LLVM tools they depend on.
* Standardize the name of a variable: cferuntime_libdir -> CFERuntimeLibDir

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

19 years agoFor PR432:
Reid Spencer [Wed, 22 Dec 2004 05:57:09 +0000 (05:57 +0000)]
For PR432:
* Use new configuration variables to compute LLVMGCC and LLVMGXX variables.

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

19 years agoFor PR432:
Reid Spencer [Wed, 22 Dec 2004 05:56:56 +0000 (05:56 +0000)]
For PR432:
* Remove --with-llvmgccdir, not needed any more
* Search path for llvm-gcc and llvm-gxx
* Compute LLVMGCCDIR based on install path of llvm-gcc

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

19 years agoGet rid of old automake stuff
Reid Spencer [Wed, 22 Dec 2004 05:56:41 +0000 (05:56 +0000)]
Get rid of old automake stuff

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

19 years agoSupport the gas option --traditional-format which, for some reason, gets
Reid Spencer [Wed, 22 Dec 2004 02:58:43 +0000 (02:58 +0000)]
Support the gas option --traditional-format which, for some reason, gets
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

19 years agoIgnore generated files
Misha Brukman [Wed, 22 Dec 2004 01:49:53 +0000 (01:49 +0000)]
Ignore generated files

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

19 years agoRevert last patch until we can figure out how to build executables named
Reid Spencer [Wed, 22 Dec 2004 01:37:47 +0000 (01:37 +0000)]
Revert last patch until we can figure out how to build executables named
llvmgcc and llvmg++ correctly.

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

19 years agoFix the Win32 build
Misha Brukman [Wed, 22 Dec 2004 01:37:33 +0000 (01:37 +0000)]
Fix the Win32 build

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

19 years agoRevert last changes as they introduce CFE build problems.
Reid Spencer [Wed, 22 Dec 2004 01:36:27 +0000 (01:36 +0000)]
Revert last changes as they introduce CFE build problems.

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

19 years agoMake parameters to CopyFile use explicit instantiation of sys::Path.
Reid Spencer [Wed, 22 Dec 2004 01:26:48 +0000 (01:26 +0000)]
Make parameters to CopyFile use explicit instantiation of sys::Path.

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

19 years agoAdd project Bytecode to Visual Studio
Jeff Cohen [Wed, 22 Dec 2004 00:27:14 +0000 (00:27 +0000)]
Add project Bytecode to Visual Studio

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

19 years agoRemove instructions to make aliases for llvmgcc and llvmg++ as the CFE
Reid Spencer [Tue, 21 Dec 2004 18:52:08 +0000 (18:52 +0000)]
Remove instructions to make aliases for llvmgcc and llvmg++ as the CFE
Build instructions now direct the user to have the CFE generate executables
with those names via the --program-prefix=llvm configure option.

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

19 years agoFor PR432:
Reid Spencer [Tue, 21 Dec 2004 18:50:54 +0000 (18:50 +0000)]
For PR432:
Add instructions for using the --program-prefix=llvm so that the CFE build
produces llvmgcc instead of gcc.

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

19 years agoFix VC++ compilation error
Jeff Cohen [Tue, 21 Dec 2004 15:40:41 +0000 (15:40 +0000)]
Fix VC++ compilation error

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

19 years agoFor PR351:
Reid Spencer [Tue, 21 Dec 2004 07:51:33 +0000 (07:51 +0000)]
For PR351:
Remove unix specific code (use of errno and read) from the reader.
Thanks to Jeff Cohen for pointing this out.

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

19 years agoVisual Studio project Configure should place the configured header files
Jeff Cohen [Tue, 21 Dec 2004 06:49:13 +0000 (06:49 +0000)]
Visual Studio project Configure should place the configured header files
in the win32 subtree instead of the src subtree.

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

19 years agoPut the CopyFile function explicitly in the sys namespace.
Reid Spencer [Tue, 21 Dec 2004 03:27:08 +0000 (03:27 +0000)]
Put the CopyFile function explicitly in the sys namespace.

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

19 years agoUse explicit construction of sys::Path from std::string because the
Reid Spencer [Tue, 21 Dec 2004 03:24:02 +0000 (03:24 +0000)]
Use explicit construction of sys::Path from std::string because the
constructor is "explicit".

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

19 years agoInclude <cassert> for Cygwin.
Reid Spencer [Tue, 21 Dec 2004 00:22:51 +0000 (00:22 +0000)]
Include <cassert> for Cygwin.

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

19 years agoCygwin doesn't like .. through a link, so drop the ..
Reid Spencer [Mon, 20 Dec 2004 22:21:41 +0000 (22:21 +0000)]
Cygwin doesn't like .. through a link, so drop the ..

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

19 years agoFix a bug where system time always equals user time
Reid Spencer [Mon, 20 Dec 2004 21:44:27 +0000 (21:44 +0000)]
Fix a bug where system time always equals user time

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

19 years agoImplement GetTimeUsage correctly.
Reid Spencer [Mon, 20 Dec 2004 21:43:33 +0000 (21:43 +0000)]
Implement GetTimeUsage correctly.

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

19 years agoAllow compilers that can't distinguish between a class instantiation and
Reid Spencer [Mon, 20 Dec 2004 19:16:12 +0000 (19:16 +0000)]
Allow compilers that can't distinguish between a class instantiation and
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

19 years agoProvide a getrusage based implementation of GetTotalMemoryUsage and use
Reid Spencer [Mon, 20 Dec 2004 16:33:37 +0000 (16:33 +0000)]
Provide a getrusage based implementation of GetTotalMemoryUsage and use
the ru_maxrss field as an approximation.

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

19 years agoConsistently use the same #if style. Also, fix a bug testing for sbrk(3)
Reid Spencer [Mon, 20 Dec 2004 16:06:44 +0000 (16:06 +0000)]
Consistently use the same #if style. Also, fix a bug testing for sbrk(3)

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

19 years agoRemove unnecessary #includes.
Reid Spencer [Mon, 20 Dec 2004 06:38:12 +0000 (06:38 +0000)]
Remove unnecessary #includes.

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

19 years agoBe double sure about including sys/stat.h by wrapping the inclusion in
Reid Spencer [Mon, 20 Dec 2004 06:34:02 +0000 (06:34 +0000)]
Be double sure about including sys/stat.h by wrapping the inclusion in
an "#if defined(HAVE_SYS_STAT_H)".

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

19 years agollvm/Config/unistd.h has gone away, far, far away
Misha Brukman [Mon, 20 Dec 2004 05:36:57 +0000 (05:36 +0000)]
llvm/Config/unistd.h has gone away, far, far away

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

19 years agoRemove the #include of llvm/Config/unistd.h as it is no longer needed.
Reid Spencer [Mon, 20 Dec 2004 04:52:04 +0000 (04:52 +0000)]
Remove the #include of llvm/Config/unistd.h as it is no longer needed.

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

19 years agoRemove this file as there are no LLVM users of it any more.
Reid Spencer [Mon, 20 Dec 2004 04:35:20 +0000 (04:35 +0000)]
Remove this file as there are no LLVM users of it any more.

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

19 years agoIncorporate the contents of include/llvm/Config/unistd.h as this is the
Reid Spencer [Mon, 20 Dec 2004 04:34:36 +0000 (04:34 +0000)]
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.

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

19 years agoRemove this file as its not used by anything in LLVM any more. System
Reid Spencer [Mon, 20 Dec 2004 04:25:53 +0000 (04:25 +0000)]
Remove this file as its not used by anything in LLVM any more. System
dependent behavior is now made through the lib/System interface.

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

19 years agoRemove these files as they are included by nothing in LLVM any more. The
Reid Spencer [Mon, 20 Dec 2004 04:24:32 +0000 (04:24 +0000)]
Remove these files as they are included by nothing in LLVM any more. The
system dependent functionality has been moved to lib/System.

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

19 years agoRemove these headers. The files that used to #include them don't any more
Reid Spencer [Mon, 20 Dec 2004 04:20:37 +0000 (04:20 +0000)]
Remove these headers. The files that used to #include them don't any more
as most system dependent behavior has been moved to lib/System.

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

19 years agoRemove un-needed #includes.
Reid Spencer [Mon, 20 Dec 2004 04:15:44 +0000 (04:15 +0000)]
Remove un-needed #includes.

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

19 years agoAdd HAVE_SYSCONF
Reid Spencer [Mon, 20 Dec 2004 04:08:58 +0000 (04:08 +0000)]
Add HAVE_SYSCONF

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

19 years agoUse Config/alloca.h instead of alloca.h - pointed out by Duraid and Misha
Brian Gaeke [Mon, 20 Dec 2004 04:02:01 +0000 (04:02 +0000)]
Use Config/alloca.h instead of alloca.h - pointed out by Duraid and Misha

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

19 years agoPut some header files back that Win32 needs.
Reid Spencer [Mon, 20 Dec 2004 03:59:23 +0000 (03:59 +0000)]
Put some header files back that Win32 needs.

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

19 years agoKeep up with lib/System changes
Jeff Cohen [Mon, 20 Dec 2004 03:24:56 +0000 (03:24 +0000)]
Keep up with lib/System changes

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

19 years agoFix problems uncovered by VC++ (first time compiled by VC++)
Jeff Cohen [Mon, 20 Dec 2004 03:23:46 +0000 (03:23 +0000)]
Fix problems uncovered by VC++ (first time compiled by VC++)

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

19 years agoFor PR351:
Reid Spencer [Mon, 20 Dec 2004 00:59:28 +0000 (00:59 +0000)]
For PR351:
* Implement GetMallocUsage to get usage of malloc heap
* Implement GetMemoryUsage to get total memory usage of process
* Implement GetTimeUsage to get elapsed/user/system time

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

19 years agoFor PR351:
Reid Spencer [Mon, 20 Dec 2004 00:59:16 +0000 (00:59 +0000)]
For PR351:
No need for Unix/SUS/Process.cpp any more, just ifdef it.

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

19 years agoFor PR351:
Reid Spencer [Mon, 20 Dec 2004 00:59:04 +0000 (00:59 +0000)]
For PR351:
* Move system dependent implementation out of this file.
* Make implementation use sys::Process::GetMallocUsage where necessary.
* Make implementation use sys::Process::GetTimeUsage where necessary.

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

19 years agoFor PR351:
Reid Spencer [Mon, 20 Dec 2004 00:59:04 +0000 (00:59 +0000)]
For PR351:
* Add checks for sbrk and getpagesize functions
* Alphebetize the checks for functions

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

19 years agoFor PR351:
Reid Spencer [Mon, 20 Dec 2004 00:58:53 +0000 (00:58 +0000)]
For PR351:
* Add GetMallocUsage as a wrapper around mallinfo()
* Add GetTotalMemoryUsage to get approximate RSS size
* Add GetTimeUsage to get elapsed/system/user time

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

19 years agoWrap long lines
Reid Spencer [Mon, 20 Dec 2004 00:58:41 +0000 (00:58 +0000)]
Wrap long lines

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

19 years agoFor PR351:
Reid Spencer [Mon, 20 Dec 2004 00:58:25 +0000 (00:58 +0000)]
For PR351:
This file is no longer needed as system dependent functions have been
encapsulated into lib/System.

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

19 years ago* Use "" for LLVM include files, not <>
Misha Brukman [Mon, 20 Dec 2004 00:16:38 +0000 (00:16 +0000)]
* Use "" for LLVM include files, not <>
* llvm/Config/alloca.h already #includes config.h
* Minor readability/stylistic changes

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

19 years agoMake this compile on Solaris.
Brian Gaeke [Sun, 19 Dec 2004 21:08:07 +0000 (21:08 +0000)]
Make this compile on Solaris.

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