| Index: src/IceCfg.cpp
|
| diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
|
| index 6565667e7287f6c52b791f857732f3c91ba6d333..2c80e0b50048703216913a05827cfedf094c8c1a 100644
|
| --- a/src/IceCfg.cpp
|
| +++ b/src/IceCfg.cpp
|
| @@ -29,16 +29,10 @@
|
|
|
| namespace Ice {
|
|
|
| -ICE_TLS_DEFINE_FIELD(const Cfg *, Cfg, CurrentCfg);
|
| -
|
| -ArenaAllocator<> *getCurrentCfgAllocator() {
|
| - return Cfg::getCurrentCfgAllocator();
|
| -}
|
| -
|
| Cfg::Cfg(GlobalContext *Ctx, uint32_t SequenceNumber)
|
| : Ctx(Ctx), SequenceNumber(SequenceNumber),
|
| VMask(Ctx->getFlags().getVerbose()), NextInstNumber(Inst::NumberInitial),
|
| - Allocator(new ArenaAllocator<>()), Live(nullptr),
|
| + Allocator(new ArenaAllocator()), Live(nullptr),
|
| Target(TargetLowering::createLowering(Ctx->getFlags().getTargetArch(),
|
| this)),
|
| VMetadata(new VariablesMetadata(this)),
|
| @@ -53,7 +47,7 @@ Cfg::Cfg(GlobalContext *Ctx, uint32_t SequenceNumber)
|
| }
|
| }
|
|
|
| -Cfg::~Cfg() { assert(ICE_TLS_GET_FIELD(CurrentCfg) == nullptr); }
|
| +Cfg::~Cfg() { assert(CfgAllocatorTraits::current() == nullptr); }
|
|
|
| /// Create a string like "foo(i=123:b=9)" indicating the function name, number
|
| /// of high-level instructions, and number of basic blocks. This string is only
|
|
|