[PATCH] D112498: [Lex] Remove timer from #pragma clang __debug crash handler
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 25 16:13:00 PDT 2021
sammccall created this revision.
sammccall added reviewers: kadircet, aganea.
sammccall requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This seems to be temporary code for testing 28ad9fc20823678881baa0d723834b88ea9e8e3a <https://reviews.llvm.org/rG28ad9fc20823678881baa0d723834b88ea9e8e3a>
which was never removed
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112498
Files:
clang/lib/Lex/Pragma.cpp
Index: clang/lib/Lex/Pragma.cpp
===================================================================
--- clang/lib/Lex/Pragma.cpp
+++ clang/lib/Lex/Pragma.cpp
@@ -45,7 +45,6 @@
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
-#include "llvm/Support/Timer.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
@@ -1108,8 +1107,6 @@
if (!PP.getPreprocessorOpts().DisablePragmaDebugCrash)
llvm_unreachable("This is an assertion!");
} else if (II->isStr("crash")) {
- llvm::Timer T("crash", "pragma crash");
- llvm::TimeRegion R(&T);
if (!PP.getPreprocessorOpts().DisablePragmaDebugCrash)
LLVM_BUILTIN_TRAP;
} else if (II->isStr("parser_crash")) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112498.382151.patch
Type: text/x-patch
Size: 771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211025/f8c7fe2f/attachment.bin>
More information about the cfe-commits
mailing list