Make the objfile constructor private
[deliverable/binutils-gdb.git] / gdb / jit.c
index b6e51e4f8b4dc45aababed6d5ed5b7c20edddb3c..2018e2c6f0d2826354817b15f085735add479e81 100644 (file)
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -786,8 +786,8 @@ jit_object_close_impl (struct gdb_symbol_callbacks *cb,
 
   priv_data = (jit_dbg_reader_data *) cb->priv_data;
 
-  objfile = new struct objfile (NULL, "<< JIT compiled code >>",
-                               OBJF_NOT_FILENAME);
+  objfile = objfile::make (nullptr, "<< JIT compiled code >>",
+                          OBJF_NOT_FILENAME);
   objfile->per_bfd->gdbarch = target_gdbarch ();
 
   j = NULL;
This page took 0.025047 seconds and 4 git commands to generate.