forked from OSchip/llvm-project
Move yaml::Stream's dtor out of line so it can see Scanner's dtor.
llvm-svn: 154004
This commit is contained in:
parent
e43bde73aa
commit
a1355d17ca
|
@ -78,6 +78,7 @@ std::string escape(StringRef Input);
|
||||||
class Stream {
|
class Stream {
|
||||||
public:
|
public:
|
||||||
Stream(StringRef Input, SourceMgr &);
|
Stream(StringRef Input, SourceMgr &);
|
||||||
|
~Stream();
|
||||||
|
|
||||||
document_iterator begin();
|
document_iterator begin();
|
||||||
document_iterator end();
|
document_iterator end();
|
||||||
|
|
|
@ -1523,6 +1523,8 @@ Stream::Stream(StringRef Input, SourceMgr &SM)
|
||||||
: scanner(new Scanner(Input, SM))
|
: scanner(new Scanner(Input, SM))
|
||||||
, CurrentDoc(0) {}
|
, CurrentDoc(0) {}
|
||||||
|
|
||||||
|
Stream::~Stream() {}
|
||||||
|
|
||||||
bool Stream::failed() { return scanner->failed(); }
|
bool Stream::failed() { return scanner->failed(); }
|
||||||
|
|
||||||
void Stream::printError(Node *N, const Twine &Msg) {
|
void Stream::printError(Node *N, const Twine &Msg) {
|
||||||
|
|
Loading…
Reference in New Issue