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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Misha Brukman [Sun, 19 Dec 2004 19:27:11 +0000 (19:27 +0000)]
Use <> for system #include files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19046
91177308-0d34-0410-b5e6-
96231b3b80d8
Brian Gaeke [Sun, 19 Dec 2004 18:58:11 +0000 (18:58 +0000)]
Make references to 'struct sigaction' compile under Solaris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19045
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 19 Dec 2004 18:00:56 +0000 (18:00 +0000)]
For PR351:
* Support changes in sys::Program::ExecuteAndWait interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19044
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 19 Dec 2004 18:00:44 +0000 (18:00 +0000)]
For PR351:
Move the functionality of RunProgramWithTimeout into the ExecuteAndWait
function: support a timeout and I/O redirects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19043
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 19 Dec 2004 18:00:32 +0000 (18:00 +0000)]
For PR351:
Add a needed include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19042
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 19 Dec 2004 18:00:21 +0000 (18:00 +0000)]
For PR351:
* 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
Reid Spencer [Sun, 19 Dec 2004 18:00:09 +0000 (18:00 +0000)]
For PR351:
* Remove unneeded header files.
* Move RedirectFD static function to lib/System/Unix/Program.cpp
* Delete RunProgramWithTimeout, now implemented by
sys::Program::ExecuteAndWait. RunProgramWithTimeout is now a convenience func.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19040
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 19 Dec 2004 17:59:57 +0000 (17:59 +0000)]
For PR351:
Incorporate the abilities of RunPRogramWithTimeout into
sys::Program::ExecuteAndWait so that redirection and a timeout are optionally
supported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19039
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sun, 19 Dec 2004 17:59:45 +0000 (17:59 +0000)]
For PR351:
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
Reid Spencer [Sun, 19 Dec 2004 17:59:33 +0000 (17:59 +0000)]
For PR351:
Replace RunProgramWithTimeout with an inline function that calls
sys::Program::ExecuteAndWait. This is now just a convenience function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19037
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sun, 19 Dec 2004 17:53:47 +0000 (17:53 +0000)]
Add llc project to Visual Studio
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19036
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sun, 19 Dec 2004 06:40:39 +0000 (06:40 +0000)]
Add lli project to Visual Studio
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19035
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sun, 19 Dec 2004 02:29:00 +0000 (02:29 +0000)]
Enable browse information in Visual Studio
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19034
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 18 Dec 2004 08:01:43 +0000 (08:01 +0000)]
Improve dependency management for lib/system/win32/* files. Instead of copying the
files from win32/* to platform/*, create one line files in platform that include the
corresponding file in win32. This makes life much more enjoyable!
The cruel irony is that NTFS has hard links just like Unix, but there's no way to
get to them from the DOS prompt!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19033
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 18 Dec 2004 07:05:59 +0000 (07:05 +0000)]
Don't forget about release configuration...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19032
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 18 Dec 2004 06:55:41 +0000 (06:55 +0000)]
Rationalize warning suppression. First, 64-bit portability warnings are disabled. The
specific warnings they produced were being suppressed anyway. The truncation warnings
that were suppressed are now enabled, and the few that still occur ought to be fixed.
The only warnings suppressed now are the "negating an unsigned is still unsigned", the
validity of which Chris does not accept, and the "implicit conversion of <type> to bool
performance warning". Making the conversion explicit won't make it run any faster and
this is an easier way to shut the compiler up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19031
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 18 Dec 2004 06:54:21 +0000 (06:54 +0000)]
sys::CopyFile returns void and throws an exception on error which will be
caught by llvm-ld's main function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19030
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 18 Dec 2004 06:53:10 +0000 (06:53 +0000)]
sys::CopyString throws an exception on error which will be caught by gccld
main function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19029
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Sat, 18 Dec 2004 06:42:15 +0000 (06:42 +0000)]
Fix win32 breakage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19028
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 18 Dec 2004 00:19:32 +0000 (00:19 +0000)]
The CopyFile function got moved into the sys namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19026
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Sat, 18 Dec 2004 00:14:24 +0000 (00:14 +0000)]
Correct the name of the method. CopyFiles -> CopyFile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19025
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 17 Dec 2004 22:41:46 +0000 (22:41 +0000)]
Remove unused enum value
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19024
91177308-0d34-0410-b5e6-
96231b3b80d8