mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Use llvm::make_unique once more to avoid ADL ambiguity with std::make_unique
llvm-svn: 308552
This commit is contained in:
parent
279be51a4e
commit
7c92e514b4
@ -1252,13 +1252,14 @@ public:
|
||||
std::unique_ptr<DWARFContext>
|
||||
DWARFContext::create(const object::ObjectFile &Obj, const LoadedObjectInfo *L,
|
||||
function_ref<ErrorPolicy(Error)> HandleError) {
|
||||
auto DObj = make_unique<DWARFObjInMemory>(Obj, L, HandleError);
|
||||
auto DObj = llvm::make_unique<DWARFObjInMemory>(Obj, L, HandleError);
|
||||
return llvm::make_unique<DWARFContext>(std::move(DObj));
|
||||
}
|
||||
|
||||
std::unique_ptr<DWARFContext>
|
||||
DWARFContext::create(const StringMap<std::unique_ptr<MemoryBuffer>> &Sections,
|
||||
uint8_t AddrSize, bool isLittleEndian) {
|
||||
auto DObj = make_unique<DWARFObjInMemory>(Sections, AddrSize, isLittleEndian);
|
||||
auto DObj =
|
||||
llvm::make_unique<DWARFObjInMemory>(Sections, AddrSize, isLittleEndian);
|
||||
return llvm::make_unique<DWARFContext>(std::move(DObj));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user