Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 //===- subzero/src/IceInstrumentation.h - ICE instrumentation ---*- C++ -*-===// | 1 //===- subzero/src/IceInstrumentation.h - ICE instrumentation ---*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 /// | 9 /// |
| 10 /// \file | 10 /// \file |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 34 | 34 |
| 35 class LoweringContext; | 35 class LoweringContext; |
| 36 | 36 |
| 37 class Instrumentation { | 37 class Instrumentation { |
| 38 Instrumentation() = delete; | 38 Instrumentation() = delete; |
| 39 Instrumentation(const Instrumentation &) = delete; | 39 Instrumentation(const Instrumentation &) = delete; |
| 40 Instrumentation &operator=(const Instrumentation &) = delete; | 40 Instrumentation &operator=(const Instrumentation &) = delete; |
| 41 | 41 |
| 42 public: | 42 public: |
| 43 Instrumentation(GlobalContext *Ctx) : Ctx(Ctx) {} | 43 Instrumentation(GlobalContext *Ctx) : Ctx(Ctx) {} |
| 44 virtual void instrumentGlobals() {}; | 44 virtual void instrumentGlobals(VariableDeclarationList &Globals) { |
|
Jim Stichnoth
2016/06/09 22:27:39
If you do this:
virtual void instrumentGlobals(
tlively
2016/06/09 23:30:10
Done.
| |
| 45 (void) Globals; | |
| 46 }; | |
| 45 void instrumentFunc(Cfg *Func); | 47 void instrumentFunc(Cfg *Func); |
| 46 | 48 |
| 47 private: | 49 private: |
| 48 void instrumentInst(LoweringContext &Context); | 50 void instrumentInst(LoweringContext &Context); |
| 49 virtual void instrumentFuncStart(LoweringContext &Context) { | 51 virtual void instrumentFuncStart(LoweringContext &Context) { |
| 50 (void) Context; | 52 (void) Context; |
| 51 } | 53 } |
| 52 virtual void instrumentAlloca(LoweringContext &Context, | 54 virtual void instrumentAlloca(LoweringContext &Context, |
| 53 const class InstAlloca *Instr) { | 55 const class InstAlloca *Instr) { |
| 54 (void) Context; | 56 (void) Context; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 138 (void) Func; | 140 (void) Func; |
| 139 } | 141 } |
| 140 | 142 |
| 141 protected: | 143 protected: |
| 142 GlobalContext *Ctx; | 144 GlobalContext *Ctx; |
| 143 }; | 145 }; |
| 144 | 146 |
| 145 } // end of namespace Ice | 147 } // end of namespace Ice |
| 146 | 148 |
| 147 #endif // SUBZERO_SRC_ICEINSTRUMENTATION_H | 149 #endif // SUBZERO_SRC_ICEINSTRUMENTATION_H |
| OLD | NEW |