OLD | NEW |
1 //===- subzero/src/IceASanInstrumentation.h - AddressSanitizer --*- C++ -*-===// | 1 //===- subzero/src/IceASanInstrumentation.h - AddressSanitizer --*- 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 22 matching lines...) Expand all Loading... |
33 public: | 33 public: |
34 ASanInstrumentation(GlobalContext *Ctx) : Instrumentation(Ctx) {} | 34 ASanInstrumentation(GlobalContext *Ctx) : Instrumentation(Ctx) {} |
35 void instrumentGlobals(VariableDeclarationList &Globals) override; | 35 void instrumentGlobals(VariableDeclarationList &Globals) override; |
36 | 36 |
37 private: | 37 private: |
38 std::string nextRzName(); | 38 std::string nextRzName(); |
39 VariableDeclaration *createRz(VariableDeclarationList *List, | 39 VariableDeclaration *createRz(VariableDeclarationList *List, |
40 VariableDeclaration *RzArray, | 40 VariableDeclaration *RzArray, |
41 SizeT &RzArraySize, | 41 SizeT &RzArraySize, |
42 VariableDeclaration *Global); | 42 VariableDeclaration *Global); |
| 43 void instrumentStart(Cfg *Func) override; |
43 bool DidInsertRedZones = false; | 44 bool DidInsertRedZones = false; |
44 uint32_t RzNum = 0; | 45 uint32_t RzNum = 0; |
45 }; | 46 }; |
46 } // end of namespace Ice | 47 } // end of namespace Ice |
47 | 48 |
48 #endif // SUBZERO_SRC_ICEASANINSTRUMENTATION_H | 49 #endif // SUBZERO_SRC_ICEASANINSTRUMENTATION_H |
OLD | NEW |