Fix an issue where scripted commands would not actually print any of their output if an immediate output file was set in the result object via a Python file object

Fixes rdar://24130303

llvm-svn: 257644
This commit is contained in:
Enrico Granata
2016-01-13 18:11:45 +00:00
parent c5d29aa7c4
commit 744959b9c9
7 changed files with 82 additions and 1 deletions

View File

@@ -525,6 +525,8 @@ class PythonFile : public PythonObject
void Reset(PyRefType type, PyObject *py_obj) override;
void Reset(File &file, const char *mode);
static uint32_t GetOptionsFromMode(llvm::StringRef mode);
bool GetUnderlyingFile(File &file) const;
};