Make it explicit that the only entry points to the Program object are
authorChandler Carruth <chandlerc@gmail.com>
Mon, 31 Dec 2012 23:44:49 +0000 (23:44 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 31 Dec 2012 23:44:49 +0000 (23:44 +0000)
through the static helper functions. This is already true throughout the
codebase.

Slowly, I'm going to re-implement these static helpers in terms of a new
process based interface which can expose more information, and remove
the program object entirely.

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

include/llvm/Support/Program.h

index e09d66446fcb9184d12cabbd475600ca80583253..028565d2a6a65cb8d6ad24c37a63ca4d5d3c3858 100644 (file)
@@ -39,7 +39,6 @@ namespace sys {
 
     /// @name Methods
     /// @{
-  public:
 
     Program();
     ~Program();
@@ -100,6 +99,7 @@ namespace sys {
       ///< is non-empty upon return an error occurred while waiting.
       );
 
+  public:
     /// This static constructor (factory) will attempt to locate a program in
     /// the operating system's file system using some pre-determined set of
     /// locations to search (e.g. the PATH on Unix). Paths with slashes are