summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-04-04 08:53:34 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-04-04 08:53:34 +0000
commita95b4ebf3c17f0069b8cea3841d66395eaf6d4e1 (patch)
treef97e22be8d7eb709dacc96f7fcabdef32705dc95
parent32d1774d45532508c9c76fa8e4dad9454ec50656 (diff)
downloadllvm-a95b4ebf3c17f0069b8cea3841d66395eaf6d4e1.tar.gz
llvm-a95b4ebf3c17f0069b8cea3841d66395eaf6d4e1.tar.bz2
llvm-a95b4ebf3c17f0069b8cea3841d66395eaf6d4e1.tar.xz
Move yaml::Stream's dtor out of line so it can see Scanner's dtor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154004 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/YAMLParser.h1
-rw-r--r--lib/Support/YAMLParser.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/YAMLParser.h b/include/llvm/Support/YAMLParser.h
index c5a51abb05..1f0fc4828c 100644
--- a/include/llvm/Support/YAMLParser.h
+++ b/include/llvm/Support/YAMLParser.h
@@ -78,6 +78,7 @@ std::string escape(StringRef Input);
class Stream {
public:
Stream(StringRef Input, SourceMgr &);
+ ~Stream();
document_iterator begin();
document_iterator end();
diff --git a/lib/Support/YAMLParser.cpp b/lib/Support/YAMLParser.cpp
index 475c2e5af4..330519f301 100644
--- a/lib/Support/YAMLParser.cpp
+++ b/lib/Support/YAMLParser.cpp
@@ -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) {