X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FSupport%2FYAMLParser.h;h=4180735ed3b73f2def9ed6551009988f89c9d5c5;hb=974a445bd90795248274493eda5cdbf6721910f7;hp=0e780bab121db6d265d8fa1ee891a024c8c2e9c9;hpb=b21ab43cfc3fa0dacf5c95f04e58b6d804b59a16;p=oota-llvm.git diff --git a/include/llvm/Support/YAMLParser.h b/include/llvm/Support/YAMLParser.h index 0e780bab121..4180735ed3b 100644 --- a/include/llvm/Support/YAMLParser.h +++ b/include/llvm/Support/YAMLParser.h @@ -43,9 +43,8 @@ #include "llvm/ADT/StringRef.h" #include "llvm/Support/Allocator.h" #include "llvm/Support/SMLoc.h" - -#include #include +#include #include namespace llvm { @@ -105,6 +104,7 @@ private: /// @brief Abstract base class for all Nodes. class Node { + virtual void anchor(); public: enum NodeKind { NK_Null, @@ -175,6 +175,7 @@ private: /// Example: /// !!null null class NullNode : public Node { + virtual void anchor(); public: NullNode(OwningPtr &D) : Node(NK_Null, D, StringRef(), StringRef()) {} @@ -190,6 +191,7 @@ public: /// Example: /// Adena class ScalarNode : public Node { + virtual void anchor(); public: ScalarNode(OwningPtr &D, StringRef Anchor, StringRef Tag, StringRef Val) @@ -231,6 +233,7 @@ private: /// Example: /// Section: .text class KeyValueNode : public Node { + virtual void anchor(); public: KeyValueNode(OwningPtr &D) : Node(NK_KeyValue, D, StringRef(), StringRef()) @@ -342,6 +345,7 @@ void skip(CollectionType &C) { /// Name: _main /// Scope: Global class MappingNode : public Node { + virtual void anchor(); public: enum MappingType { MT_Block, @@ -391,6 +395,7 @@ private: /// - Hello /// - World class SequenceNode : public Node { + virtual void anchor(); public: enum SequenceType { ST_Block, @@ -446,6 +451,7 @@ private: /// Example: /// *AnchorName class AliasNode : public Node { + virtual void anchor(); public: AliasNode(OwningPtr &D, StringRef Val) : Node(NK_Alias, D, StringRef(), StringRef()), Name(Val) {}