[compiler-rt] r367460 - compiler-rt: Rename .cc file in lib/profile to .cpp

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 11:21:08 PDT 2019


Author: nico
Date: Wed Jul 31 11:21:08 2019
New Revision: 367460

URL: http://llvm.org/viewvc/llvm-project?rev=367460&view=rev
Log:
compiler-rt: Rename .cc file in lib/profile to .cpp

See https://reviews.llvm.org/D58620 for discussion.

Note how the comment in the file already said ".cpp" :)

Added:
    compiler-rt/trunk/lib/profile/InstrProfilingRuntime.cpp
Removed:
    compiler-rt/trunk/lib/profile/InstrProfilingRuntime.cc
Modified:
    compiler-rt/trunk/lib/profile/CMakeLists.txt
    compiler-rt/trunk/lib/profile/InstrProfiling.h

Modified: compiler-rt/trunk/lib/profile/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/CMakeLists.txt?rev=367460&r1=367459&r2=367460&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/profile/CMakeLists.txt Wed Jul 31 11:21:08 2019
@@ -63,7 +63,7 @@ set(PROFILE_SOURCES
   InstrProfilingPlatformLinux.c
   InstrProfilingPlatformOther.c
   InstrProfilingPlatformWindows.c
-  InstrProfilingRuntime.cc
+  InstrProfilingRuntime.cpp
   InstrProfilingUtil.c
   )
 

Modified: compiler-rt/trunk/lib/profile/InstrProfiling.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfiling.h?rev=367460&r1=367459&r2=367460&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfiling.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfiling.h Wed Jul 31 11:21:08 2019
@@ -219,7 +219,7 @@ uint64_t __llvm_profile_get_data_size(co
 void __llvm_profile_set_dumped();
 
 /*!
- * This variable is defined in InstrProfilingRuntime.cc as a hidden
+ * This variable is defined in InstrProfilingRuntime.cpp as a hidden
  * symbol. Its main purpose is to enable profile runtime user to
  * bypass runtime initialization code -- if the client code explicitly
  * define this variable, then InstProfileRuntime.o won't be linked in.

Removed: compiler-rt/trunk/lib/profile/InstrProfilingRuntime.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingRuntime.cc?rev=367459&view=auto
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingRuntime.cc (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingRuntime.cc (removed)
@@ -1,29 +0,0 @@
-//===- InstrProfilingRuntime.cpp - PGO runtime initialization -------------===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-extern "C" {
-
-#include "InstrProfiling.h"
-
-/* int __llvm_profile_runtime  */
-COMPILER_RT_VISIBILITY int INSTR_PROF_PROFILE_RUNTIME_VAR;
-}
-
-namespace {
-
-class RegisterRuntime {
-public:
-  RegisterRuntime() {
-    __llvm_profile_register_write_file_atexit();
-    __llvm_profile_initialize_file();
-  }
-};
-
-RegisterRuntime Registration;
-
-}

Added: compiler-rt/trunk/lib/profile/InstrProfilingRuntime.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingRuntime.cpp?rev=367460&view=auto
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingRuntime.cpp (added)
+++ compiler-rt/trunk/lib/profile/InstrProfilingRuntime.cpp Wed Jul 31 11:21:08 2019
@@ -0,0 +1,29 @@
+//===- InstrProfilingRuntime.cpp - PGO runtime initialization -------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+extern "C" {
+
+#include "InstrProfiling.h"
+
+/* int __llvm_profile_runtime  */
+COMPILER_RT_VISIBILITY int INSTR_PROF_PROFILE_RUNTIME_VAR;
+}
+
+namespace {
+
+class RegisterRuntime {
+public:
+  RegisterRuntime() {
+    __llvm_profile_register_write_file_atexit();
+    __llvm_profile_initialize_file();
+  }
+};
+
+RegisterRuntime Registration;
+
+}




More information about the llvm-commits mailing list