aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2013-10-24 13:36:58 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2013-10-24 13:36:58 +0000
commit43752f2d4f29ebb40318e8da05633c994b694f46 (patch)
tree721bbd49cf75f951afb58245250a8535dbc85da8 /include/llvm/Support
parente2dee623e0eeb12c6e22add0e55139693ffb2dca (diff)
downloadexternal_llvm-43752f2d4f29ebb40318e8da05633c994b694f46.zip
external_llvm-43752f2d4f29ebb40318e8da05633c994b694f46.tar.gz
external_llvm-43752f2d4f29ebb40318e8da05633c994b694f46.tar.bz2
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
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/YAMLTraits.h8
1 files changed, 7 insertions, 1 deletions
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<StringRef> {
};
template<>
+struct ScalarTraits<std::string> {
+ static void output(const std::string &, void*, llvm::raw_ostream &);
+ static StringRef input(StringRef, void*, std::string &);
+};
+
+template<>
struct ScalarTraits<uint8_t> {
static void output(const uint8_t &, void*, llvm::raw_ostream &);
static StringRef input(StringRef, void*, uint8_t &);