Implemented AddressSanitizer::getPassName()
authorAlexander Potapenko <glider@google.com>
Mon, 23 Jan 2012 11:22:43 +0000 (11:22 +0000)
committerAlexander Potapenko <glider@google.com>
Mon, 23 Jan 2012 11:22:43 +0000 (11:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148697 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/AddressSanitizer.cpp

index e645a9fdbddf4dc7a41b90cc1d2bbf2ed68c0a1e..6ee9550043d8a29144495a0bc614d9364a541479 100644 (file)
@@ -143,6 +143,7 @@ class BlackList {
 /// AddressSanitizer: instrument the code in module to find memory bugs.
 struct AddressSanitizer : public ModulePass {
   AddressSanitizer();
+  virtual const char *getPassName() const;
   void instrumentMop(Instruction *I);
   void instrumentAddress(Instruction *OrigIns, IRBuilder<> &IRB,
                          Value *Addr, uint32_t TypeSize, bool IsWrite);
@@ -205,6 +206,10 @@ ModulePass *llvm::createAddressSanitizerPass() {
   return new AddressSanitizer();
 }
 
+const char *AddressSanitizer::getPassName() const {
+  return "AddressSanitizer";
+}
+
 // Create a constant for Str so that we can pass it to the run-time lib.
 static GlobalVariable *createPrivateGlobalForString(Module &M, StringRef Str) {
   Constant *StrConst = ConstantArray::get(M.getContext(), Str);