From 43752f2d4f29ebb40318e8da05633c994b694f46 Mon Sep 17 00:00:00 2001 From: John Thompson Date: Thu, 24 Oct 2013 13:36:58 +0000 Subject: Added std::string as a built-in type for mapping. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193344 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/YAMLTraits.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/llvm/Support') diff --git a/include/llvm/Support/YAMLTraits.h b/include/llvm/Support/YAMLTraits.h index 98964fc..a57e049 100644 --- a/include/llvm/Support/YAMLTraits.h +++ b/include/llvm/Support/YAMLTraits.h @@ -1,4 +1,4 @@ -//===- llvm/Supporrt/YAMLTraits.h -------------------------------*- C++ -*-===// +//===- llvm/Support/YAMLTraits.h -------------------------------*- C++ -*-===// // // The LLVM Linker // @@ -539,6 +539,12 @@ struct ScalarTraits { }; template<> +struct ScalarTraits { + static void output(const std::string &, void*, llvm::raw_ostream &); + static StringRef input(StringRef, void*, std::string &); +}; + +template<> struct ScalarTraits { static void output(const uint8_t &, void*, llvm::raw_ostream &); static StringRef input(StringRef, void*, uint8_t &); -- cgit v1.1