llvm.org GIT mirror llvm / 2587804
Implemented AddressSanitizer::getPassName() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148697 91177308-0d34-0410-b5e6-96231b3b80d8 Alexander Potapenko 8 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
142142 /// AddressSanitizer: instrument the code in module to find memory bugs.
143143 struct AddressSanitizer : public ModulePass {
144144 AddressSanitizer();
145 virtual const char *getPassName() const;
145146 void instrumentMop(Instruction *I);
146147 void instrumentAddress(Instruction *OrigIns, IRBuilder<> &IRB,
147148 Value *Addr, uint32_t TypeSize, bool IsWrite);
202203 AddressSanitizer::AddressSanitizer() : ModulePass(ID) { }
203204 ModulePass *llvm::createAddressSanitizerPass() {
204205 return new AddressSanitizer();
206 }
207
208 const char *AddressSanitizer::getPassName() const {
209 return "AddressSanitizer";
205210 }
206211
207212 // Create a constant for Str so that we can pass it to the run-time lib.