projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Separate out the tests for whether the compiler suports R-value
[oota-llvm.git]
/
include
/
llvm
/
Support
/
YAMLParser.h
diff --git
a/include/llvm/Support/YAMLParser.h
b/include/llvm/Support/YAMLParser.h
index eacd651394c6fdcb7ada73ed3c9f2f72fbad2d02..e3f4f003884a2a4c3a8717aaa1d52bd0d24aa04b 100644
(file)
--- a/
include/llvm/Support/YAMLParser.h
+++ b/
include/llvm/Support/YAMLParser.h
@@
-77,7
+77,11
@@
std::string escape(StringRef Input);
/// documents.
class Stream {
public:
/// documents.
class Stream {
public:
+ /// @brief This keeps a reference to the string referenced by \p Input.
Stream(StringRef Input, SourceMgr &);
Stream(StringRef Input, SourceMgr &);
+
+ /// @brief This takes ownership of \p InputBuffer.
+ Stream(MemoryBuffer *InputBuffer, SourceMgr &);
~Stream();
document_iterator begin();
~Stream();
document_iterator begin();
@@
-133,7
+137,6
@@
public:
virtual void skip() {}
unsigned int getType() const { return TypeID; }
virtual void skip() {}
unsigned int getType() const { return TypeID; }
- static inline bool classof(const Node *) { return true; }
void *operator new ( size_t Size
, BumpPtrAllocator &Alloc
void *operator new ( size_t Size
, BumpPtrAllocator &Alloc
@@
-166,7
+169,6
@@
class NullNode : public Node {
public:
NullNode(OwningPtr<Document> &D) : Node(NK_Null, D, StringRef()) {}
public:
NullNode(OwningPtr<Document> &D) : Node(NK_Null, D, StringRef()) {}
- static inline bool classof(const NullNode *) { return true; }
static inline bool classof(const Node *N) {
return N->getType() == NK_Null;
}
static inline bool classof(const Node *N) {
return N->getType() == NK_Null;
}
@@
-199,7
+201,6
@@
public:
/// This happens with escaped characters and multi-line literals.
StringRef getValue(SmallVectorImpl<char> &Storage) const;
/// This happens with escaped characters and multi-line literals.
StringRef getValue(SmallVectorImpl<char> &Storage) const;
- static inline bool classof(const ScalarNode *) { return true; }
static inline bool classof(const Node *N) {
return N->getType() == NK_Scalar;
}
static inline bool classof(const Node *N) {
return N->getType() == NK_Scalar;
}
@@
-246,7
+247,6
@@
public:
getValue()->skip();
}
getValue()->skip();
}
- static inline bool classof(const KeyValueNode *) { return true; }
static inline bool classof(const Node *N) {
return N->getType() == NK_KeyValue;
}
static inline bool classof(const Node *N) {
return N->getType() == NK_KeyValue;
}
@@
-362,7
+362,6
@@
public:
yaml::skip(*this);
}
yaml::skip(*this);
}
- static inline bool classof(const MappingNode *) { return true; }
static inline bool classof(const Node *N) {
return N->getType() == NK_Mapping;
}
static inline bool classof(const Node *N) {
return N->getType() == NK_Mapping;
}
@@
-425,7
+424,6
@@
public:
yaml::skip(*this);
}
yaml::skip(*this);
}
- static inline bool classof(const SequenceNode *) { return true; }
static inline bool classof(const Node *N) {
return N->getType() == NK_Sequence;
}
static inline bool classof(const Node *N) {
return N->getType() == NK_Sequence;
}
@@
-450,7
+448,6
@@
public:
StringRef getName() const { return Name; }
Node *getTarget();
StringRef getName() const { return Name; }
Node *getTarget();
- static inline bool classof(const ScalarNode *) { return true; }
static inline bool classof(const Node *N) {
return N->getType() == NK_Alias;
}
static inline bool classof(const Node *N) {
return N->getType() == NK_Alias;
}