[llvm] r306043 - Fix build break by using llvm::make_unique instead of std::make_unique.
Adrian McCarthy via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 22 11:57:51 PDT 2017
Author: amccarth
Date: Thu Jun 22 13:57:51 2017
New Revision: 306043
URL: http://llvm.org/viewvc/llvm-project?rev=306043&view=rev
Log:
Fix build break by using llvm::make_unique instead of std::make_unique.
Modified:
llvm/trunk/lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp
llvm/trunk/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
Modified: llvm/trunk/lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp?rev=306043&r1=306042&r2=306043&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp Thu Jun 22 13:57:51 2017
@@ -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::getSy
}
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 {
Modified: llvm/trunk/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp?rev=306043&r1=306042&r2=306043&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp Thu Jun 22 13:57:51 2017
@@ -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(NativeS
: 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>
More information about the llvm-commits
mailing list