Skip to content

Commit

Permalink
Remove some function deletes for LLVM compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lesderid committed Aug 2, 2020
1 parent 5d6c605 commit 57943c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions gdb/gdbsupport/poison.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ struct IsMemsettable
std::is_pod<T>>
{};

template <typename T,
typename = gdb::Requires<gdb::Not<IsMemsettable<T>>>>
void *memset (T *s, int c, size_t n) = delete;

#if HAVE_IS_TRIVIALLY_COPYABLE

/* Similarly, poison memcpy and memmove of non trivially-copyable
Expand Down Expand Up @@ -98,9 +94,6 @@ using IsMallocable = std::true_type;
template<typename T>
using IsFreeable = gdb::Or<std::is_trivially_destructible<T>, std::is_void<T>>;

template <typename T, typename = gdb::Requires<gdb::Not<IsFreeable<T>>>>
void free (T *ptr) = delete;

template<typename T>
static T *
xnew ()
Expand Down
3 changes: 1 addition & 2 deletions gdb/pdb.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#include "config.h"
#include "defs.h"

#include <llvm/Object/COFF.h>
#include <llvm/DebugInfo/PDB/Native/PDBFile.h>
#undef __STDC_CONSTANT_MACROS
#undef __STDC_LIMIT_MACROS

#include "defs.h"
#include "symtab.h"
#include "minsyms.h"
#include "gdb_bfd.h"
Expand Down

0 comments on commit 57943c4

Please sign in to comment.