diff options
author | Rainer Orth <ro@gcc.gnu.org> | 2020-05-21 17:33:42 +0200 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2020-05-21 17:33:42 +0200 |
commit | c4169a3efebd1bf5710b2c280857686942dc254a (patch) | |
tree | 6f93cfba8e02f0bfcebaf295044e4084f55d09c0 /llvm/lib/Support/YAMLTraits.cpp | |
parent | [llvm][test] Add missing FileCheck colons. NFC (diff) | |
download | llvm-project-c4169a3efebd1bf5710b2c280857686942dc254a.tar.gz llvm-project-c4169a3efebd1bf5710b2c280857686942dc254a.tar.bz2 llvm-project-c4169a3efebd1bf5710b2c280857686942dc254a.zip |
Revert "[YAMLTraits] Add trait for char"
This reverts commit fab08bf4899e40d02d8bf394a63499ac679ac61c. It has left
the Solaris buildbots broken for a week and a half as reported
in https://reviews.llvm.org/D79745.
Diffstat (limited to 'llvm/lib/Support/YAMLTraits.cpp')
-rw-r--r-- | llvm/lib/Support/YAMLTraits.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Support/YAMLTraits.cpp b/llvm/lib/Support/YAMLTraits.cpp index a4b782db0a96..f27be3e97430 100644 --- a/llvm/lib/Support/YAMLTraits.cpp +++ b/llvm/lib/Support/YAMLTraits.cpp @@ -864,17 +864,6 @@ StringRef ScalarTraits<bool>::input(StringRef Scalar, void *, bool &Val) { return "invalid boolean"; } -void ScalarTraits<char>::output(const char &Val, void *, raw_ostream &Out) { - Out << Val; -} - -StringRef ScalarTraits<char>::input(StringRef Scalar, void *, char &Val) { - if (Scalar.size() != 1) - return "invalid character"; - Val = Scalar[0]; - return StringRef(); -} - void ScalarTraits<StringRef>::output(const StringRef &Val, void *, raw_ostream &Out) { Out << Val; |