Index: src/disassembler.cc |
diff --git a/src/disassembler.cc b/src/disassembler.cc |
index e32904df5cb2073e210463d860858bf5a74b7d6d..1da917167f91db36548376b0aae7d376f3ef9f1c 100644 |
--- a/src/disassembler.cc |
+++ b/src/disassembler.cc |
@@ -4,6 +4,8 @@ |
#include "src/disassembler.h" |
+#include <memory> |
+ |
#include "src/code-stubs.h" |
#include "src/codegen.h" |
#include "src/debug/debug.h" |
@@ -185,7 +187,7 @@ static int DecodeIt(Isolate* isolate, std::ostream* os, |
HeapStringAllocator allocator; |
StringStream accumulator(&allocator); |
relocinfo.target_object()->ShortPrint(&accumulator); |
- base::SmartArrayPointer<const char> obj_name = accumulator.ToCString(); |
+ std::unique_ptr<char[]> obj_name = accumulator.ToCString(); |
out.AddFormatted(" ;; object: %s", obj_name.get()); |
} else if (rmode == RelocInfo::EXTERNAL_REFERENCE) { |
const char* reference_name = ref_encoder.NameOfAddress( |