summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2019-06-29 00:10:22 +0000
committerLeonard Chan <leonardchan@google.com>2019-06-29 00:10:22 +0000
commitda47e2cac3812802ccd97127084464ac8d4710db (patch)
tree2a7d75f44056a4f510a2644e60261839cbdf86f5 /clang/lib/CodeGen/BackendUtil.cpp
parent69d9c314337f79c9b22b6e9e4c08558ef8a0a4db (diff)
downloadbcm5719-llvm-da47e2cac3812802ccd97127084464ac8d4710db.tar.gz
bcm5719-llvm-da47e2cac3812802ccd97127084464ac8d4710db.zip
Revert "[clang][NewPM] Fix broken profile test"
This reverts commit ab2c0ed01edfec9a9402d03bdf8633b34b73f3a7. See https://reviews.llvm.org/D63155 llvm-svn: 364692
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 5d66473e7b9..40a529c319f 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -60,7 +60,6 @@
#include "llvm/Transforms/Instrumentation/HWAddressSanitizer.h"
#include "llvm/Transforms/Instrumentation/InstrProfiling.h"
#include "llvm/Transforms/Instrumentation/MemorySanitizer.h"
-#include "llvm/Transforms/Instrumentation/PGOInstrumentation.h"
#include "llvm/Transforms/Instrumentation/ThreadSanitizer.h"
#include "llvm/Transforms/ObjCARC.h"
#include "llvm/Transforms/Scalar.h"
@@ -1222,11 +1221,6 @@ void EmitAssemblyHelper::EmitAssemblyWithNewPassManager(
if (CodeGenOpts.OptimizationLevel == 0)
addSanitizersAtO0(MPM, TargetTriple, LangOpts, CodeGenOpts);
-
- if (CodeGenOpts.hasProfileIRInstr()) {
- // This file is stored as the ProfileFile.
- MPM.addPass(PGOInstrumentationGenCreateVar(PGOOpt->ProfileFile));
- }
}
// FIXME: We still use the legacy pass manager to do code generation. We
OpenPOWER on IntegriCloud