[llvm] bd2f7ad - Revert "[examples] Adjust ThinLtoInstrumentationLayer for emit signature change"
Jonas Devlieghere via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 11 09:23:23 PDT 2020
Author: Jonas Devlieghere
Date: 2020-09-11T09:22:42-07:00
New Revision: bd2f7ad6036caf214c4e3f46bcea9d4aa70bb810
URL: https://github.com/llvm/llvm-project/commit/bd2f7ad6036caf214c4e3f46bcea9d4aa70bb810
DIFF: https://github.com/llvm/llvm-project/commit/bd2f7ad6036caf214c4e3f46bcea9d4aa70bb810.diff
LOG: Revert "[examples] Adjust ThinLtoInstrumentationLayer for emit signature change"
I raced with Florian and he had already reverted the original patch.
Added:
Modified:
llvm/examples/ThinLtoJIT/ThinLtoInstrumentationLayer.cpp
llvm/examples/ThinLtoJIT/ThinLtoInstrumentationLayer.h
Removed:
################################################################################
diff --git a/llvm/examples/ThinLtoJIT/ThinLtoInstrumentationLayer.cpp b/llvm/examples/ThinLtoJIT/ThinLtoInstrumentationLayer.cpp
index df844bf19b9c..345bfd8dd870 100644
--- a/llvm/examples/ThinLtoJIT/ThinLtoInstrumentationLayer.cpp
+++ b/llvm/examples/ThinLtoJIT/ThinLtoInstrumentationLayer.cpp
@@ -120,8 +120,8 @@ void ThinLtoInstrumentationLayer::nudgeIntoDiscovery(
LLVM_DEBUG(dbgs() << "Nudged " << Count << " new functions into discovery\n");
}
-void ThinLtoInstrumentationLayer::emit(
- std::unique_ptr<MaterializationResponsibility> R, ThreadSafeModule TSM) {
+void ThinLtoInstrumentationLayer::emit(MaterializationResponsibility R,
+ ThreadSafeModule TSM) {
TSM.withModuleDo([this](Module &M) {
std::vector<Function *> FunctionsToInstrument;
diff --git a/llvm/examples/ThinLtoJIT/ThinLtoInstrumentationLayer.h b/llvm/examples/ThinLtoJIT/ThinLtoInstrumentationLayer.h
index 25006b40607f..cd8720789474 100644
--- a/llvm/examples/ThinLtoJIT/ThinLtoInstrumentationLayer.h
+++ b/llvm/examples/ThinLtoJIT/ThinLtoInstrumentationLayer.h
@@ -34,8 +34,7 @@ class ThinLtoInstrumentationLayer : public IRLayer {
~ThinLtoInstrumentationLayer() override;
- void emit(std::unique_ptr<MaterializationResponsibility> R,
- ThreadSafeModule TSM) override;
+ void emit(MaterializationResponsibility R, ThreadSafeModule TSM) override;
unsigned reserveDiscoveryFlags(unsigned Count);
void registerDiscoveryFlagOwners(std::vector<GlobalValue::GUID> Guids,
More information about the llvm-commits
mailing list