diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-03-03 13:39:48 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-03 14:07:04 +0100 |
commit | 0fe950d1c05a633e737a0dab3d91d33fe0994141 (patch) | |
tree | 23a82b3cb1210c9e9d0ebf9083396083d93271d7 /src/3rdparty/masm/stubs | |
parent | 151f750638d605ef19c62b2714d80e7780bfce8f (diff) |
V4 JIT: enable disassembler on windows.
Change-Id: I55a2a96a1a774c79cc2146c6b47d441fede1d102
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/3rdparty/masm/stubs')
-rw-r--r-- | src/3rdparty/masm/stubs/WTFStubs.cpp | 10 | ||||
-rw-r--r-- | src/3rdparty/masm/stubs/WTFStubs.h | 1 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/3rdparty/masm/stubs/WTFStubs.cpp b/src/3rdparty/masm/stubs/WTFStubs.cpp index dff692fd67..d1c684dbaf 100644 --- a/src/3rdparty/masm/stubs/WTFStubs.cpp +++ b/src/3rdparty/masm/stubs/WTFStubs.cpp @@ -68,7 +68,13 @@ uint32_t cryptographicallyRandomNumber() return 0; } -static FilePrintStream* s_dataFile; +static PrintStream* s_dataFile; + +void setDataFile(PrintStream *ps) +{ + delete s_dataFile; + s_dataFile = ps; +} void setDataFile(FILE* f) { @@ -76,7 +82,7 @@ void setDataFile(FILE* f) s_dataFile = new FilePrintStream(f, FilePrintStream::Borrow); } -FilePrintStream& dataFile() +PrintStream& dataFile() { if (!s_dataFile) s_dataFile = new FilePrintStream(stderr, FilePrintStream::Borrow); diff --git a/src/3rdparty/masm/stubs/WTFStubs.h b/src/3rdparty/masm/stubs/WTFStubs.h index e6a7291acf..c36089bce9 100644 --- a/src/3rdparty/masm/stubs/WTFStubs.h +++ b/src/3rdparty/masm/stubs/WTFStubs.h @@ -44,6 +44,7 @@ namespace WTF { void setDataFile(FILE* f); +void setDataFile(class PrintStream *); } |