]> granicus.if.org Git - llvm/commitdiff
Fix build break by using llvm::make_unique instead of std::make_unique.
authorAdrian McCarthy <amccarth@google.com>
Thu, 22 Jun 2017 18:57:51 +0000 (18:57 +0000)
committerAdrian McCarthy <amccarth@google.com>
Thu, 22 Jun 2017 18:57:51 +0000 (18:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306043 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp
lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp

index bd5cdd4691e4150af3924fe3201b79d8b7f5e7bb..180c169ec209cfd5cf0384a5cebeb7bde432ebd5 100644 (file)
@@ -9,6 +9,8 @@
 
 #include "llvm/DebugInfo/PDB/Native/NativeCompilandSymbol.h"
 
+#include "llvm/ADT/STLExtras.h"
+
 namespace llvm {
 namespace pdb {
 
@@ -22,7 +24,7 @@ PDB_SymType NativeCompilandSymbol::getSymTag() const {
 }
 
 std::unique_ptr<NativeRawSymbol> NativeCompilandSymbol::clone() const {
-  return std::make_unique<NativeCompilandSymbol>(Session, SymbolId, Module);
+  return llvm::make_unique<NativeCompilandSymbol>(Session, SymbolId, Module);
 }
 
 bool NativeCompilandSymbol::isEditAndContinueEnabled() const {
index 36731f586d2f141413ff0637ba976d295aef491c..6206155b9fb647960f18cfaca7e1a8e3c8caf8ac 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "llvm/DebugInfo/PDB/Native/NativeExeSymbol.h"
 
+#include "llvm/ADT/STLExtras.h"
 #include "llvm/DebugInfo/PDB/Native/DbiStream.h"
 #include "llvm/DebugInfo/PDB/Native/InfoStream.h"
 #include "llvm/DebugInfo/PDB/Native/NativeEnumModules.h"
@@ -21,7 +22,7 @@ NativeExeSymbol::NativeExeSymbol(NativeSession &Session, uint32_t SymbolId)
     : NativeRawSymbol(Session, SymbolId), File(Session.getPDBFile()) {}
 
 std::unique_ptr<NativeRawSymbol> NativeExeSymbol::clone() const {
-  return std::make_unique<NativeExeSymbol>(Session, SymbolId);
+  return llvm::make_unique<NativeExeSymbol>(Session, SymbolId);
 }
 
 std::unique_ptr<IPDBEnumSymbols>