llvm.org GIT mirror llvm / ab884fa
Convert std::make_unique<> to llvm::make_unique<>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228768 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 4 years ago
3 changed file(s) with 14 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
66 //
77 //===----------------------------------------------------------------------===//
88
9 #include "llvm/ADT/STLExtras.h"
910 #include "llvm/DebugInfo/PDB/PDBExtras.h"
1011 #include "llvm/DebugInfo/PDB/DIA/DIAEnumSymbols.h"
1112 #include "llvm/DebugInfo/PDB/DIA/DIARawSymbol.h"
274275 if (S_OK != Symbol->findChildren(EnumVal, nullptr, nsNone, &DiaEnumerator))
275276 return nullptr;
276277
277 return std::make_unique(Session, DiaEnumerator);
278 return llvm::make_unique(Session, DiaEnumerator);
278279 }
279280
280281 std::unique_ptr
292293 Symbol->findChildren(EnumVal, Name16Str, CompareFlags, &DiaEnumerator))
293294 return nullptr;
294295
295 return std::make_unique(Session, DiaEnumerator);
296 return llvm::make_unique(Session, DiaEnumerator);
296297 }
297298
298299 std::unique_ptr
311312 &DiaEnumerator))
312313 return nullptr;
313314
314 return std::make_unique(Session, DiaEnumerator);
315 return llvm::make_unique(Session, DiaEnumerator);
315316 }
316317
317318 std::unique_ptr
320321 if (S_OK != Symbol->findInlineFramesByRVA(RVA, &DiaEnumerator))
321322 return nullptr;
322323
323 return std::make_unique(Session, DiaEnumerator);
324 return llvm::make_unique(Session, DiaEnumerator);
324325 }
325326
326327 void DIARawSymbol::getDataBytes(llvm::SmallVector &bytes) const {
66 //
77 //===----------------------------------------------------------------------===//
88
9 #include "llvm/ADT/STLExtras.h"
910 #include "llvm/DebugInfo/PDB/PDBSymbolCompiland.h"
1011 #include "llvm/DebugInfo/PDB/PDBSymbolExe.h"
1112
6162 if (S_OK != Session->get_globalScope(&GlobalScope))
6263 return nullptr;
6364
64 auto RawSymbol = std::make_unique(*this, GlobalScope);
65 auto RawSymbol = llvm::make_unique(*this, GlobalScope);
6566 auto PdbSymbol(PDBSymbol::create(*this, std::move(RawSymbol)));
6667 std::unique_ptr ExeSymbol(
6768 static_cast(PdbSymbol.release()));
7374 if (S_OK != Session->symbolById(SymbolId, &LocatedSymbol))
7475 return nullptr;
7576
76 auto RawSymbol = std::make_unique(*this, LocatedSymbol);
77 auto RawSymbol = llvm::make_unique(*this, LocatedSymbol);
7778 return PDBSymbol::create(*this, std::move(RawSymbol));
7879 }
7980
8283 if (S_OK != Session->findFile(nullptr, nullptr, nsNone, &Files))
8384 return nullptr;
8485
85 return std::make_unique(*this, Files);
86 return llvm::make_unique(*this, Files);
8687 }
8788
8889 std::unique_ptr DIASession::getSourceFilesForCompiland(
9596 Session->findFile(RawSymbol.getDiaSymbol(), nullptr, nsNone, &Files))
9697 return nullptr;
9798
98 return std::make_unique(*this, Files);
99 return llvm::make_unique(*this, Files);
99100 }
100101
101102 std::unique_ptr
104105 if (S_OK != Session->findFileById(FileId, &LocatedFile))
105106 return nullptr;
106107
107 return std::make_unique(*this, LocatedFile);
108 return llvm::make_unique(*this, LocatedFile);
108109 }
109110
110111 std::unique_ptr DIASession::getDebugStreams() const {
112113 if (S_OK != Session->getEnumDebugStreams(&DiaEnumerator))
113114 return nullptr;
114115
115 return std::unique_ptr(
116 new DIAEnumDebugStreams(DiaEnumerator));
116 return llvm::make_unique(DiaEnumerator);
117117 }
66 //
77 //===----------------------------------------------------------------------===//
88
9 #include
109 #include
1110
11 #include "llvm/ADT/STLExtras.h"
1212 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
1313 #include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
1414 #include "llvm/DebugInfo/PDB/IPDBSession.h"
338338 std::unique_ptr Session;
339339
340340 void InsertItemWithTag(PDB_SymType Tag) {
341 auto RawSymbol = std::make_unique(*Session, Tag);
341 auto RawSymbol = llvm::make_unique(*Session, Tag);
342342 auto Symbol = PDBSymbol::create(*Session, std::move(RawSymbol));
343343 SymbolMap.insert(std::make_pair(Tag, std::move(Symbol)));
344344 }