summaryrefslogtreecommitdiff
path: root/src/jit/jitstd
diff options
context:
space:
mode:
authorMike Danes <onemihaid@hotmail.com>2017-10-15 15:27:13 +0300
committerMike Danes <onemihaid@hotmail.com>2017-10-15 16:27:31 +0300
commit5abe396a53e7c1253251d5a34f3c399de3b109db (patch)
tree7d285c0717c51b0ae2ccb58e0cbc7f54d67c33a8 /src/jit/jitstd
parentfbffd595a79d1188c5d23412c59f4de86ea73931 (diff)
downloadcoreclr-5abe396a53e7c1253251d5a34f3c399de3b109db.tar.gz
coreclr-5abe396a53e7c1253251d5a34f3c399de3b109db.tar.bz2
coreclr-5abe396a53e7c1253251d5a34f3c399de3b109db.zip
Avoid using IAllocator in jitstd
Diffstat (limited to 'src/jit/jitstd')
-rw-r--r--src/jit/jitstd/allocator.h30
1 files changed, 6 insertions, 24 deletions
diff --git a/src/jit/jitstd/allocator.h b/src/jit/jitstd/allocator.h
index 2bd33daa98..f370af8e9d 100644
--- a/src/jit/jitstd/allocator.h
+++ b/src/jit/jitstd/allocator.h
@@ -2,26 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-// ==++==
-//
-
-//
-
-//
-// ==--==
-
-/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-XX XX
-XX allocator<T> XX
-XX XX
-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-*/
-
#pragma once
-#include "iallocator.h"
#include "new.h"
namespace jitstd
@@ -50,7 +32,7 @@ private:
allocator();
public:
- inline allocator(IAllocator* pAlloc);
+ inline allocator(CompAllocator* pAlloc);
template <typename U>
inline allocator(const allocator<U>& alloc);
@@ -61,12 +43,12 @@ public:
inline allocator& operator=(const allocator<U>& alloc);
private:
- IAllocator* m_pAlloc;
+ CompAllocator* m_pAlloc;
template <typename U>
friend class allocator;
};
-allocator<void>::allocator(IAllocator* pAlloc)
+allocator<void>::allocator(CompAllocator* pAlloc)
: m_pAlloc(pAlloc)
{
}
@@ -104,7 +86,7 @@ public:
private:
allocator();
public:
- allocator(IAllocator* pAlloc);
+ allocator(CompAllocator* pAlloc);
template <typename U>
allocator(const allocator<U>& alloc);
@@ -128,7 +110,7 @@ public:
};
private:
- IAllocator* m_pAlloc;
+ CompAllocator* m_pAlloc;
template <typename U>
friend class allocator;
};
@@ -140,7 +122,7 @@ namespace jitstd
{
template <typename T>
-allocator<T>::allocator(IAllocator* pAlloc)
+allocator<T>::allocator(CompAllocator* pAlloc)
: m_pAlloc(pAlloc)
{
}