#define LLVM_LIB_IR_LEAKSCONTEXT_H
#include "llvm/ADT/SmallPtrSet.h"
+#include "llvm/IR/Metadata.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/raw_ostream.h"
static void print(const Value* P) { errs() << *P; }
};
+template <> struct PrinterTrait<Metadata> {
+ static void print(const Metadata *P) { P->print(errs()); }
+};
+
template <typename T>
struct LeakDetectorImpl {
explicit LeakDetectorImpl(const char* const name = "") :