[llvm-commits] CVS: llvm/lib/Support/PluginLoader.cpp Signals.cpp Timer.cpp
John Criswell
criswell at choi.cs.uiuc.edu
Mon Jun 23 14:08:30 PDT 2003
Changes in directory llvm/lib/Support:
PluginLoader.cpp updated: 1.2 -> 1.2.2.1
Signals.cpp updated: 1.5 -> 1.5.2.1
Timer.cpp updated: 1.18 -> 1.18.2.1
---
Log message:
Initial autoconf checkin.
---
Diffs of the changes:
Index: llvm/lib/Support/PluginLoader.cpp
diff -u llvm/lib/Support/PluginLoader.cpp:1.2 llvm/lib/Support/PluginLoader.cpp:1.2.2.1
--- llvm/lib/Support/PluginLoader.cpp:1.2 Thu Jul 25 01:17:46 2002
+++ llvm/lib/Support/PluginLoader.cpp Mon Jun 23 14:07:06 2003
@@ -11,8 +11,8 @@
//===----------------------------------------------------------------------===//
#include "Support/CommandLine.h"
-#include <dlfcn.h>
-#include <link.h>
+#include "Config/dlfcn.h"
+#include "Config/link.h"
#include <iostream>
namespace {
Index: llvm/lib/Support/Signals.cpp
diff -u llvm/lib/Support/Signals.cpp:1.5 llvm/lib/Support/Signals.cpp:1.5.2.1
--- llvm/lib/Support/Signals.cpp:1.5 Tue May 27 11:25:04 2003
+++ llvm/lib/Support/Signals.cpp Mon Jun 23 14:07:06 2003
@@ -32,7 +32,7 @@
// SignalHandler - The signal handler that runs...
-static void SignalHandler(int Sig) {
+static RETSIGTYPE SignalHandler(int Sig) {
while (!FilesToRemove.empty()) {
std::remove(FilesToRemove.back().c_str());
FilesToRemove.pop_back();
Index: llvm/lib/Support/Timer.cpp
diff -u llvm/lib/Support/Timer.cpp:1.18 llvm/lib/Support/Timer.cpp:1.18.2.1
--- llvm/lib/Support/Timer.cpp:1.18 Fri Jun 6 17:13:01 2003
+++ llvm/lib/Support/Timer.cpp Mon Jun 23 14:07:06 2003
@@ -4,14 +4,15 @@
//
//===----------------------------------------------------------------------===//
+#include "Config/malloc.h"
+
#include "Support/Timer.h"
#include "Support/CommandLine.h"
-#include <sys/resource.h>
-#include <sys/time.h>
-#include <sys/unistd.h>
-#include <unistd.h>
-#include <malloc.h>
-#include <stdio.h>
+
+#include "Config/sys/resource.h"
+#include "Config/sys/time.h"
+#include "Config/unistd.h"
+#include "Config/stdio.h"
#include <iostream>
#include <algorithm>
#include <functional>
@@ -20,10 +21,12 @@
std::string LibSupportInfoOutputFilename;
namespace {
+#ifdef HAVE_MALLINFO
cl::opt<bool>
TrackSpace("track-memory", cl::desc("Enable -time-passes memory "
"tracking (this may be slow)"),
cl::Hidden);
+#endif
cl::opt<std::string, true>
InfoOutputFilename("info-output-file",
@@ -75,12 +78,16 @@
}
static long getMemUsage() {
+#ifdef HAVE_MALLINFO
if (TrackSpace) {
struct mallinfo MI = mallinfo();
return MI.uordblks/*+MI.hblkhd*/;
} else {
return 0;
}
+#else
+ return 0;
+#endif
}
struct TimeRecord {
More information about the llvm-commits
mailing list