diff options
| author | 2015-01-13 19:11:25 +0000 | |
|---|---|---|
| committer | 2015-01-13 19:11:25 +0000 | |
| commit | 56107c5dc0b68de680e9627682527550af6816db (patch) | |
| tree | bffd41529429f9b654ab6824c368191dd5e97719 /compiler/optimizing/optimizing_compiler.cc | |
| parent | b95dff1a3ae456c0afec74b506f9b9c9cb12663a (diff) | |
| parent | 6e73272f093e9dc045c08baae57eebb5dcd6e044 (diff) | |
Merge "Revert "ART: dex2oat flag for HGraphVisualizer dump file""
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
| -rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index eaecbb04ae..692d452f54 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -149,12 +149,11 @@ 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(); - const std::string cfg_file_name = driver->GetDumpCfgFileName(); - if (!cfg_file_name.empty()) { + if (driver->GetDumpPasses()) { 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(cfg_file_name)); + visualizer_output_.reset(new std::ofstream("art.cfg")); } } |