summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2021-06-01 18:48:35 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-06-01 18:48:35 +0000
commitfc0691cc2c46ec53c035bc227c15ed66a5dbd858 (patch)
tree582297646f439000d35b398cbb6b523d30db2578
parent90f568a14e3a233233376974aa9cadc86a5d13c4 (diff)
parentac2789745fef896809548b1c1e894c1e3a15d68d (diff)
downloadextras-fc0691cc2c46ec53c035bc227c15ed66a5dbd858.tar.gz
Merge "Remove at_quick_exit call" into sc-dev
-rw-r--r--toolchain-extras/profile-clang-extras.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/toolchain-extras/profile-clang-extras.cpp b/toolchain-extras/profile-clang-extras.cpp
index 4e5aca97..89c18b2a 100644
--- a/toolchain-extras/profile-clang-extras.cpp
+++ b/toolchain-extras/profile-clang-extras.cpp
@@ -36,16 +36,6 @@ static void llvm_signal_handler(__unused int signum) {
}
}
-#if __ANDROID_API__ >= 21
-void writeFileWithoutReturn() {
- __llvm_profile_write_file();
-}
-
-__attribute__((constructor)) void register_quick_exit_handler(void) {
- at_quick_exit(writeFileWithoutReturn);
-}
-#endif // #if __ANDROID_API__ >= 21
-
__attribute__((weak)) int init_profile_extras_once = 0;
// Initialize libprofile-extras: