diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-04-03 23:36:44 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-04-03 23:36:44 +0000 |
commit | c35146b7254900b34ecad51fb71f9478360ca0b9 (patch) | |
tree | 9a9f6cf94a50441b739511993b28491898752463 /include/llvm/Support/YAMLParser.h | |
parent | d13af63df7ce87440547e9149fe55337c700328e (diff) | |
download | llvm-c35146b7254900b34ecad51fb71f9478360ca0b9.tar.gz llvm-c35146b7254900b34ecad51fb71f9478360ca0b9.tar.bz2 llvm-c35146b7254900b34ecad51fb71f9478360ca0b9.tar.xz |
Sorry about that. MSVC seems to accept just about any random string you give it ;/
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/YAMLParser.h')
-rw-r--r-- | include/llvm/Support/YAMLParser.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/include/llvm/Support/YAMLParser.h b/include/llvm/Support/YAMLParser.h index 27d039164c..c5a51abb05 100644 --- a/include/llvm/Support/YAMLParser.h +++ b/include/llvm/Support/YAMLParser.h @@ -113,7 +113,6 @@ public: }; Node(unsigned int Type, OwningPtr<Document>&, StringRef Anchor); - virtual ~Node(); /// @brief Get the value of the anchor attached to this node. If it does not /// have one, getAnchor().size() will be 0. @@ -208,25 +207,6 @@ private: , SmallVectorImpl<char> &Storage) const; }; -static bool getAs(const ScalarNode *SN, bool &Result) { - SmallString<4> Storage; - StringRef Value = SN->getValue(Storage); - if (Value == "true") - Result = true; - else if (Value == "false") - Result = false; - else - return false; - return true; -} - -template<class T> -typename enable_if_c<std::numeric_limits<T>::is_integer, bool>::type -getAs(const ScalarNode *SN, T &Result) { - SmallString<4> Storage; - return !SN->getValue(Storage).getAsInteger(0, Result); -} - /// @brief A key and value pair. While not technically a Node under the YAML /// representation graph, it is easier to treat them this way. /// |