diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-04-10 18:53:28 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-04-10 18:53:28 +0000 |
commit | dd0c68e17f1633e3e540131564e08d2f1abbd48a (patch) | |
tree | 7ce6ca4d617c72daceee395e904d3124b66d86d7 /lib/Sema/Sema.cpp | |
parent | 73486352323f5466a1d1c567221559a98fce742b (diff) | |
download | clang-dd0c68e17f1633e3e540131564e08d2f1abbd48a.tar.gz |
Revert r329684 (and follow-ups 329693, 329714). See discussion on https://reviews.llvm.org/D43578.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@329739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r-- | lib/Sema/Sema.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index 928d873221..5c0026cd37 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -40,7 +40,6 @@ #include "clang/Sema/TemplateInstCallback.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SmallSet.h" -#include "llvm/Support/Timer.h" using namespace clang; using namespace sema; @@ -843,9 +842,6 @@ void Sema::ActOnStartOfTranslationUnit() { /// translation unit when EOF is reached and all but the top-level scope is /// popped. void Sema::ActOnEndOfTranslationUnit() { - llvm::NamedRegionTimer T( - "actoneou1", "Act On End Of Translation Unit: Common case", - GroupName, GroupDescription, llvm::TimePassesIsEnabled); assert(DelayedDiagnostics.getCurrentPool() == nullptr && "reached end of translation unit with a pool attached?"); @@ -871,10 +867,6 @@ void Sema::ActOnEndOfTranslationUnit() { // Complete translation units and modules define vtables and perform implicit // instantiations. PCH files do not. if (TUKind != TU_Prefix) { - llvm::NamedRegionTimer T( - "actoneou2", - "Act On End Of Translation Unit: TUKind != TU_Prefix", GroupName, - GroupDescription, llvm::TimePassesIsEnabled); DiagnoseUseOfUnimplementedSelectors(); // If DefinedUsedVTables ends up marking any virtual member functions it @@ -937,10 +929,6 @@ void Sema::ActOnEndOfTranslationUnit() { UnusedFileScopedDecls.end()); if (TUKind == TU_Prefix) { - llvm::NamedRegionTimer T( - "actoneou3", - "Act On End Of Translation Unit: TUKind == TU_Prefix", GroupName, - GroupDescription, llvm::TimePassesIsEnabled); // Translation unit prefixes don't need any of the checking below. if (!PP.isIncrementalProcessingEnabled()) TUScope = nullptr; @@ -975,10 +963,6 @@ void Sema::ActOnEndOfTranslationUnit() { } if (TUKind == TU_Module) { - llvm::NamedRegionTimer T( - "actoneou4", - "Act On End Of Translation Unit: TUKind == TU_Module", GroupName, - GroupDescription, llvm::TimePassesIsEnabled); // If we are building a module interface unit, we need to have seen the // module declaration by now. if (getLangOpts().getCompilingModule() == @@ -1573,9 +1557,6 @@ void ExternalSemaSource::ReadMismatchingDeleteExpressions(llvm::MapVector< /// name, this parameter is populated with the decls of the various overloads. bool Sema::tryExprAsCall(Expr &E, QualType &ZeroArgCallReturnTy, UnresolvedSetImpl &OverloadSet) { - llvm::NamedRegionTimer T("tryascall", "Try Expr As Call", GroupName, - GroupDescription, llvm::TimePassesIsEnabled); - ZeroArgCallReturnTy = QualType(); OverloadSet.clear(); @@ -1738,9 +1719,6 @@ static bool IsCallableWithAppend(Expr *E) { bool Sema::tryToRecoverWithCall(ExprResult &E, const PartialDiagnostic &PD, bool ForceComplain, bool (*IsPlausibleResult)(QualType)) { - llvm::NamedRegionTimer T("trytorecover", "Try To Recover With Call", - GroupName, GroupDescription, - llvm::TimePassesIsEnabled); SourceLocation Loc = E.get()->getExprLoc(); SourceRange Range = E.get()->getSourceRange(); |