[llvm-commits] CVS: llvm/tools/bugpoint/BugDriver.cpp CrashDebugger.cpp ExecutionDriver.cpp ExtractFunction.cpp Miscompilation.cpp OptimizerDriver.cpp bugpoint.cpp
Reid Spencer
reid at x10sys.com
Wed Sep 1 15:55:58 PDT 2004
Changes in directory llvm/tools/bugpoint:
BugDriver.cpp updated: 1.36 -> 1.37
CrashDebugger.cpp updated: 1.37 -> 1.38
ExecutionDriver.cpp updated: 1.47 -> 1.48
ExtractFunction.cpp updated: 1.37 -> 1.38
Miscompilation.cpp updated: 1.51 -> 1.52
OptimizerDriver.cpp updated: 1.22 -> 1.23
bugpoint.cpp updated: 1.19 -> 1.20
---
Log message:
Changes For Bug 352: http://llvm.cs.uiuc.edu/PR352
Move include/Config and include/Support into include/llvm/Config,
include/llvm/ADT and include/llvm/Support. From here on out, all LLVM
public header files must be under include/llvm/.
---
Diffs of the changes: (+20 -25)
Index: llvm/tools/bugpoint/BugDriver.cpp
diff -u llvm/tools/bugpoint/BugDriver.cpp:1.36 llvm/tools/bugpoint/BugDriver.cpp:1.37
--- llvm/tools/bugpoint/BugDriver.cpp:1.36 Sat Jul 24 02:53:26 2004
+++ llvm/tools/bugpoint/BugDriver.cpp Wed Sep 1 17:55:37 2004
@@ -20,8 +20,8 @@
#include "llvm/Bytecode/Reader.h"
#include "llvm/Support/Linker.h"
#include "llvm/Support/ToolRunner.h"
-#include "Support/CommandLine.h"
-#include "Support/FileUtilities.h"
+#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/FileUtilities.h"
#include <iostream>
#include <memory>
Index: llvm/tools/bugpoint/CrashDebugger.cpp
diff -u llvm/tools/bugpoint/CrashDebugger.cpp:1.37 llvm/tools/bugpoint/CrashDebugger.cpp:1.38
--- llvm/tools/bugpoint/CrashDebugger.cpp:1.37 Thu Jul 29 12:16:41 2004
+++ llvm/tools/bugpoint/CrashDebugger.cpp Wed Sep 1 17:55:37 2004
@@ -26,7 +26,7 @@
#include "llvm/Support/ToolRunner.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/Cloning.h"
-#include "Support/FileUtilities.h"
+#include "llvm/Support/FileUtilities.h"
#include <fstream>
#include <set>
using namespace llvm;
Index: llvm/tools/bugpoint/ExecutionDriver.cpp
diff -u llvm/tools/bugpoint/ExecutionDriver.cpp:1.47 llvm/tools/bugpoint/ExecutionDriver.cpp:1.48
--- llvm/tools/bugpoint/ExecutionDriver.cpp:1.47 Sat Jul 24 02:53:26 2004
+++ llvm/tools/bugpoint/ExecutionDriver.cpp Wed Sep 1 17:55:37 2004
@@ -14,10 +14,10 @@
#include "BugDriver.h"
#include "llvm/Support/ToolRunner.h"
-#include "Support/CommandLine.h"
-#include "Support/Debug.h"
-#include "Support/FileUtilities.h"
-#include "Support/SystemUtils.h"
+#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/Debug.h"
+#include "llvm/Support/FileUtilities.h"
+#include "llvm/Support/SystemUtils.h"
#include <fstream>
using namespace llvm;
Index: llvm/tools/bugpoint/ExtractFunction.cpp
diff -u llvm/tools/bugpoint/ExtractFunction.cpp:1.37 llvm/tools/bugpoint/ExtractFunction.cpp:1.38
--- llvm/tools/bugpoint/ExtractFunction.cpp:1.37 Wed Aug 11 21:36:50 2004
+++ llvm/tools/bugpoint/ExtractFunction.cpp Wed Sep 1 17:55:37 2004
@@ -24,9 +24,9 @@
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/Transforms/Utils/FunctionUtils.h"
#include "llvm/Target/TargetData.h"
-#include "Support/CommandLine.h"
-#include "Support/Debug.h"
-#include "Support/FileUtilities.h"
+#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/Debug.h"
+#include "llvm/Support/FileUtilities.h"
#include <set>
using namespace llvm;
Index: llvm/tools/bugpoint/Miscompilation.cpp
diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.51 llvm/tools/bugpoint/Miscompilation.cpp:1.52
--- llvm/tools/bugpoint/Miscompilation.cpp:1.51 Thu Jul 22 20:30:49 2004
+++ llvm/tools/bugpoint/Miscompilation.cpp Wed Sep 1 17:55:37 2004
@@ -23,8 +23,8 @@
#include "llvm/Support/Mangler.h"
#include "llvm/Transforms/Utils/Cloning.h"
#include "llvm/Support/Linker.h"
-#include "Support/CommandLine.h"
-#include "Support/FileUtilities.h"
+#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/FileUtilities.h"
using namespace llvm;
namespace llvm {
Index: llvm/tools/bugpoint/OptimizerDriver.cpp
diff -u llvm/tools/bugpoint/OptimizerDriver.cpp:1.22 llvm/tools/bugpoint/OptimizerDriver.cpp:1.23
--- llvm/tools/bugpoint/OptimizerDriver.cpp:1.22 Tue May 11 21:55:45 2004
+++ llvm/tools/bugpoint/OptimizerDriver.cpp Wed Sep 1 17:55:37 2004
@@ -21,7 +21,7 @@
#include "llvm/Analysis/Verifier.h"
#include "llvm/Bytecode/WriteBytecodePass.h"
#include "llvm/Target/TargetData.h"
-#include "Support/FileUtilities.h"
+#include "llvm/Support/FileUtilities.h"
#include <fstream>
#include <unistd.h>
#include <sys/types.h>
Index: llvm/tools/bugpoint/bugpoint.cpp
diff -u llvm/tools/bugpoint/bugpoint.cpp:1.19 llvm/tools/bugpoint/bugpoint.cpp:1.20
--- llvm/tools/bugpoint/bugpoint.cpp:1.19 Sun Aug 29 14:28:55 2004
+++ llvm/tools/bugpoint/bugpoint.cpp Wed Sep 1 17:55:37 2004
@@ -16,11 +16,12 @@
#include "BugDriver.h"
#include "llvm/Support/PassNameParser.h"
#include "llvm/Support/ToolRunner.h"
-#include "Support/CommandLine.h"
+#include "llvm/System/SysConfig.h"
+#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/PluginLoader.h"
#include "llvm/System/Signals.h"
-#include "Support/PluginLoader.h"
-#include "Config/unistd.h"
-#include <sys/resource.h>
+#include "llvm/Config/unistd.h"
+//#include <sys/resource.h>
using namespace llvm;
static cl::list<std::string>
@@ -45,14 +46,8 @@
D.addPasses(PassList.begin(), PassList.end());
// Bugpoint has the ability of generating a plethora of core files, so to
- // avoid filling up the disk, set the max core file size to 0.
- struct rlimit rlim;
- rlim.rlim_cur = rlim.rlim_max = 0;
- int res = setrlimit(RLIMIT_CORE, &rlim);
- if (res < 0) {
- // setrlimit() may have failed, but we're not going to let that stop us
- perror("setrlimit: RLIMIT_CORE");
- }
+ // avoid filling up the disk, we prevent it
+ sys::PreventCoreFiles();
try {
return D.run();
More information about the llvm-commits
mailing list