]> granicus.if.org Git - llvm/commitdiff
[JITLink] Move a typedef.
authorLang Hames <lhames@gmail.com>
Mon, 29 Apr 2019 22:37:16 +0000 (22:37 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 29 Apr 2019 22:37:16 +0000 (22:37 +0000)
The FinalizeContinuation typedef belongs on the Allocation class, not the
allocator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359510 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/JITLink/JITLink.h

index cc4149a80aa34291bbfa066486b64e182c1b0510..4bbb7d8b4b4dfc5f81ba04c0af7337979c6a9e8d 100644 (file)
@@ -77,8 +77,6 @@ public:
 
   using SegmentsRequestMap = DenseMap<unsigned, SegmentRequest>;
 
-  using FinalizeContinuation = std::function<void(Error)>;
-
   /// Represents an allocation created by the memory manager.
   ///
   /// An allocation object is responsible for allocating and owning jit-linker
@@ -87,6 +85,9 @@ public:
   ///
   class Allocation {
   public:
+
+    using FinalizeContinuation = std::function<void(Error)>;
+
     virtual ~Allocation();
 
     /// Should return the address of linker working memory for the segment with