summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_compiler.cc
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2015-01-13 18:31:51 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-01-13 18:31:51 +0000
commitb95dff1a3ae456c0afec74b506f9b9c9cb12663a (patch)
tree5ffa9718d1f20c27fceaff95a1da0558d5d20321 /compiler/optimizing/optimizing_compiler.cc
parent8fccea249b1a6f1469eeea42c2b2cca06ce1c70d (diff)
parent54953dfdcb3bb8896d8af2d20adef84fb740ce77 (diff)
Merge "ART: dex2oat flag for HGraphVisualizer dump file"
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r--compiler/optimizing/optimizing_compiler.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc
index 692d452f54..eaecbb04ae 100644
--- a/compiler/optimizing/optimizing_compiler.cc
+++ b/compiler/optimizing/optimizing_compiler.cc
@@ -149,11 +149,12 @@ void OptimizingCompiler::Init() {
// Enable C1visualizer output. Must be done in Init() because the compiler
// driver is not fully initialized when passed to the compiler's constructor.
CompilerDriver* driver = GetCompilerDriver();
- if (driver->GetDumpPasses()) {
+ const std::string cfg_file_name = driver->GetDumpCfgFileName();
+ if (!cfg_file_name.empty()) {
CHECK_EQ(driver->GetThreadCount(), 1U)
<< "Graph visualizer requires the compiler to run single-threaded. "
<< "Invoke the compiler with '-j1'.";
- visualizer_output_.reset(new std::ofstream("art.cfg"));
+ visualizer_output_.reset(new std::ofstream(cfg_file_name));
}
}