1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Move yaml::Stream's dtor out of line so it can see Scanner's dtor.

llvm-svn: 154004
This commit is contained in:
Benjamin Kramer 2012-04-04 08:53:34 +00:00
parent 3532e8b899
commit a323a34d00
2 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,7 @@ std::string escape(StringRef Input);
class Stream {
public:
Stream(StringRef Input, SourceMgr &);
~Stream();
document_iterator begin();
document_iterator end();

View File

@ -1523,6 +1523,8 @@ Stream::Stream(StringRef Input, SourceMgr &SM)
: scanner(new Scanner(Input, SM))
, CurrentDoc(0) {}
Stream::~Stream() {}
bool Stream::failed() { return scanner->failed(); }
void Stream::printError(Node *N, const Twine &Msg) {