[compiler-rt] r269672 - [PS4] Change the names of some "environmental" things to what our

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Mon May 16 10:22:33 PDT 2016


Author: probinson
Date: Mon May 16 12:22:32 2016
New Revision: 269672

URL: http://llvm.org/viewvc/llvm-project?rev=269672&view=rev
Log:
[PS4] Change the names of some "environmental" things to what our
licensees actually see in the toolchain we deliver to them.  This will
reduce the set of local patches we have to maintain.  The triple is
not changing.  (The term ORBIS is an internal code name for PS4.)

Modified:
    compiler-rt/trunk/lib/profile/InstrProfilingPort.h
    compiler-rt/trunk/lib/profile/InstrProfilingUtil.h

Modified: compiler-rt/trunk/lib/profile/InstrProfilingPort.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingPort.h?rev=269672&r1=269671&r2=269672&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingPort.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingPort.h Mon May 16 12:22:32 2016
@@ -27,7 +27,7 @@
 #define COMPILER_RT_MAX_HOSTLEN 128
 #ifdef _MSC_VER
 #define COMPILER_RT_GETHOSTNAME(Name, Len) gethostname(Name, Len)
-#elif defined(__PS4__)
+#elif defined(__ORBIS__)
 #define COMPILER_RT_GETHOSTNAME(Name, Len) (-1)
 #else
 #define COMPILER_RT_GETHOSTNAME(Name, Len) lprofGetHostName(Name, Len)

Modified: compiler-rt/trunk/lib/profile/InstrProfilingUtil.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingUtil.h?rev=269672&r1=269671&r2=269672&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingUtil.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingUtil.h Mon May 16 12:22:32 2016
@@ -16,9 +16,9 @@
 void __llvm_profile_recursive_mkdir(char *Pathname);
 
 /* PS4 doesn't have getenv. Define a shim. */
-#if __PS4__
+#if __ORBIS__
 static inline char *getenv(const char *name) { return NULL; }
-#endif /* #if __PS4__ */
+#endif /* #if __ORBIS__ */
 
 int lprofGetHostName(char *Name, int Len);
 




More information about the llvm-commits mailing list