diff options
author | Greg Clayton <gclayton@apple.com> | 2013-03-23 00:49:30 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-03-23 00:49:30 +0000 |
commit | 5c78d99921911f5147180a476b7ba8337a38c095 (patch) | |
tree | 4c51a34e9721513a98eaf602822912beaa8fe7d3 /lldb/tools/lldb-perf/lib | |
parent | 45461571e77e7dd9c476dd4e40e24fdcfc63918b (diff) | |
download | bcm5719-llvm-5c78d99921911f5147180a476b7ba8337a38c095.tar.gz bcm5719-llvm-5c78d99921911f5147180a476b7ba8337a38c095.zip |
Make sure the "Release" builds link against the "Release" LLDB.framework and also output the results to /dev/stdout when no outfile is supplied.
llvm-svn: 177791
Diffstat (limited to 'lldb/tools/lldb-perf/lib')
-rw-r--r-- | lldb/tools/lldb-perf/lib/Results.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/tools/lldb-perf/lib/Results.cpp b/lldb/tools/lldb-perf/lib/Results.cpp index de86f6b7d38..2bf74359826 100644 --- a/lldb/tools/lldb-perf/lib/Results.cpp +++ b/lldb/tools/lldb-perf/lib/Results.cpp @@ -167,6 +167,9 @@ Results::Write (const char *out_path) }); CFDataRef xmlData = CFPropertyListCreateData(kCFAllocatorDefault, dict.get(), kCFPropertyListXMLFormat_v1_0, 0, NULL); + if (out_path == NULL) + out_path = "/dev/stdout"; + CFURLRef file = CFURLCreateFromFileSystemRepresentation(NULL, (const UInt8*)out_path, strlen(out_path), FALSE); CFURLWriteDataAndPropertiesToResource(file, xmlData, NULL, NULL); |