summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Pragma.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2018-04-10 18:53:28 +0000
committerNico Weber <nicolasweber@gmx.de>2018-04-10 18:53:28 +0000
commitade321e7ddf76483ea8b9fd2921216e026c9dc1b (patch)
tree9d0f22b8eec20831e79785ad0ec7f366197fd6e3 /clang/lib/Lex/Pragma.cpp
parent298e1712d827a05b2cbb2936a9fc67745fa68c13 (diff)
downloadbcm5719-llvm-ade321e7ddf76483ea8b9fd2921216e026c9dc1b.tar.gz
bcm5719-llvm-ade321e7ddf76483ea8b9fd2921216e026c9dc1b.zip
Revert r329684 (and follow-ups 329693, 329714). See discussion on https://reviews.llvm.org/D43578.
llvm-svn: 329739
Diffstat (limited to 'clang/lib/Lex/Pragma.cpp')
-rw-r--r--clang/lib/Lex/Pragma.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/clang/lib/Lex/Pragma.cpp b/clang/lib/Lex/Pragma.cpp
index a1944e30ffb..db32e452d07 100644
--- a/clang/lib/Lex/Pragma.cpp
+++ b/clang/lib/Lex/Pragma.cpp
@@ -39,13 +39,11 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
-#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
-#include "llvm/Pass.h"
-#include "llvm/Support/Compiler.h"
+#include "llvm/ADT/StringRef.h"
#include "llvm/Support/CrashRecoveryContext.h"
+#include "llvm/Support/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
-#include "llvm/Support/Timer.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
@@ -56,8 +54,6 @@
#include <vector>
using namespace clang;
-static const char *const GroupName = "clangparser";
-static const char *const GroupDescription = "===== Clang Parser =====";
// Out-of-line destructor to provide a home for the class.
PragmaHandler::~PragmaHandler() = default;
@@ -86,8 +82,6 @@ PragmaNamespace::~PragmaNamespace() {
/// the null handler isn't returned on failure to match.
PragmaHandler *PragmaNamespace::FindHandler(StringRef Name,
bool IgnoreNull) const {
- llvm::NamedRegionTimer NRT("ppfindhandler", "PP Find Handler", GroupName,
- GroupDescription, llvm::TimePassesIsEnabled);
if (PragmaHandler *Handler = Handlers.lookup(Name))
return Handler;
return IgnoreNull ? nullptr : Handlers.lookup(StringRef());
@@ -134,8 +128,6 @@ void PragmaNamespace::HandlePragma(Preprocessor &PP,
/// rest of the pragma, passing it to the registered pragma handlers.
void Preprocessor::HandlePragmaDirective(SourceLocation IntroducerLoc,
PragmaIntroducerKind Introducer) {
- llvm::NamedRegionTimer NRT("pppragma", "Handle Pragma Directive", GroupName,
- GroupDescription, llvm::TimePassesIsEnabled);
if (Callbacks)
Callbacks->PragmaDirective(IntroducerLoc, Introducer);
OpenPOWER on IntegriCloud