aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/System/Program.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-27 06:16:25 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-27 06:16:25 +0000
commit51ea06abf822dd6209ed270befffc9e01c5bd01c (patch)
tree0e0e69fcf64e6e007e070d0f04f5f9745654e036 /llvm/lib/System/Program.cpp
parent844f3fec499cc1810b8cdd626b7809449beecd03 (diff)
downloadllvm-51ea06abf822dd6209ed270befffc9e01c5bd01c.zip
llvm-51ea06abf822dd6209ed270befffc9e01c5bd01c.tar.gz
llvm-51ea06abf822dd6209ed270befffc9e01c5bd01c.tar.bz2
For PR351:
* Consolidate implementation for Unix systems into Unix/Program.cpp * Avoid use of symbolic link to #include platform-specific implementation. llvm-svn: 19154
Diffstat (limited to 'llvm/lib/System/Program.cpp')
-rw-r--r--llvm/lib/System/Program.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/System/Program.cpp b/llvm/lib/System/Program.cpp
index c1dd38f..88a0084 100644
--- a/llvm/lib/System/Program.cpp
+++ b/llvm/lib/System/Program.cpp
@@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/System/Program.h"
+#include "llvm/Config/config.h"
namespace llvm {
using namespace sys;
@@ -24,6 +25,11 @@ using namespace sys;
}
// Include the platform-specific parts of this class.
-#include "platform/Program.cpp"
+#ifdef LLVM_ON_UNIX
+#include "Unix/Program.cpp"
+#endif
+#ifdef LLVM_ON_WIN32
+#include "Win32/Program.cpp"
+#endif
// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab