[llvm] bfbaf17 - [examples] Adjust ThinLtoInstrumentationLayer for emit signature change

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 08:33:52 PDT 2020


Author: Jonas Devlieghere
Date: 2020-09-11T08:33:37-07:00
New Revision: bfbaf172ce9978d8367ff08fdf90eb05fff5759d

URL: https://github.com/llvm/llvm-project/commit/bfbaf172ce9978d8367ff08fdf90eb05fff5759d
DIFF: https://github.com/llvm/llvm-project/commit/bfbaf172ce9978d8367ff08fdf90eb05fff5759d.diff

LOG: [examples] Adjust ThinLtoInstrumentationLayer for emit signature change

Emit now takes a std::unique_ptr<MaterializationResponsibility> instead
of a MaterializationResponsibility directly.

This should fix:
http://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake-standalone/

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 345bfd8dd8705..df844bf19b9cc 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(MaterializationResponsibility R,
-                                       ThreadSafeModule TSM) {
+void ThinLtoInstrumentationLayer::emit(
+    std::unique_ptr<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 cd87207894745..25006b40607fe 100644
--- a/llvm/examples/ThinLtoJIT/ThinLtoInstrumentationLayer.h
+++ b/llvm/examples/ThinLtoJIT/ThinLtoInstrumentationLayer.h
@@ -34,7 +34,8 @@ class ThinLtoInstrumentationLayer : public IRLayer {
 
   ~ThinLtoInstrumentationLayer() override;
 
-  void emit(MaterializationResponsibility R, ThreadSafeModule TSM) override;
+  void emit(std::unique_ptr<MaterializationResponsibility> R,
+            ThreadSafeModule TSM) override;
 
   unsigned reserveDiscoveryFlags(unsigned Count);
   void registerDiscoveryFlagOwners(std::vector<GlobalValue::GUID> Guids,


        


More information about the llvm-commits mailing list