Coverage for /Syzygy/optimize/optimize_app.h

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
100.0%220.C++source

Line-by-line coverage:

   1    :  // Copyright 2013 Google Inc. All Rights Reserved.
   2    :  //
   3    :  // Licensed under the Apache License, Version 2.0 (the "License");
   4    :  // you may not use this file except in compliance with the License.
   5    :  // You may obtain a copy of the License at
   6    :  //
   7    :  //     http://www.apache.org/licenses/LICENSE-2.0
   8    :  //
   9    :  // Unless required by applicable law or agreed to in writing, software
  10    :  // distributed under the License is distributed on an "AS IS" BASIS,
  11    :  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12    :  // See the License for the specific language governing permissions and
  13    :  // limitations under the License.
  14    :  //
  15    :  // Defines the OptimizeApp class, which implements the command-line optimize.exe
  16    :  // tool.
  17    :  
  18    :  #ifndef SYZYGY_OPTIMIZE_OPTIMIZE_APP_H_
  19    :  #define SYZYGY_OPTIMIZE_OPTIMIZE_APP_H_
  20    :  
  21    :  #include "base/command_line.h"
  22    :  #include "base/string_piece.h"
  23    :  #include "base/time.h"
  24    :  #include "base/files/file_path.h"
  25    :  #include "syzygy/common/application.h"
  26    :  
  27    :  namespace optimize {
  28    :  
  29    :  // This class implements the command-line optimize utility.
  30    :  class OptimizeApp : public common::AppImplBase {
  31    :   public:
  32    :    OptimizeApp()
  33    :        : AppImplBase("Optimize"),
  34    :          basic_block_reorder_(false),
  35    :          block_alignment_(false),
  36    :          fuzz_(false),
  37    :          inlining_(false),
  38    :          overwrite_(false),
  39  E :          peephole_(false) {
  40  E :    }
  41    :  
  42    :    // @name Implementation of the AppImplBase interface.
  43    :    // @{
  44    :    bool ParseCommandLine(const CommandLine* command_line);
  45    :    bool SetUp();
  46    :    int Run();
  47    :    // @}
  48    :  
  49    :   protected:
  50    :    // @name Utility members.
  51    :    // @{
  52    :    bool Usage(const CommandLine* command_line,
  53    :               const base::StringPiece& message) const;
  54    :    // @}
  55    :  
  56    :    // @name Command-line parameters.
  57    :    // @{
  58    :    base::FilePath input_image_path_;
  59    :    base::FilePath input_pdb_path_;
  60    :    base::FilePath output_image_path_;
  61    :    base::FilePath output_pdb_path_;
  62    :    base::FilePath branch_file_path_;
  63    :    bool block_alignment_;
  64    :    bool basic_block_reorder_;
  65    :    bool fuzz_;
  66    :    bool inlining_;
  67    :    bool peephole_;
  68    :    bool overwrite_;
  69    :    // @}
  70    :  
  71    :   private:
  72    :    DISALLOW_COPY_AND_ASSIGN(OptimizeApp);
  73    :  };
  74    :  
  75    :  }  // namespace optimize
  76    :  
  77    :  #endif  // SYZYGY_OPTIMIZE_OPTIMIZE_APP_H_

Coverage information generated Wed Dec 11 11:34:16 2013.