[llvm-commits] [llvm] r148697 - /llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Alexander Potapenko glider at google.com
Mon Jan 23 03:22:43 PST 2012


Author: glider
Date: Mon Jan 23 05:22:43 2012
New Revision: 148697

URL: http://llvm.org/viewvc/llvm-project?rev=148697&view=rev
Log:
Implemented AddressSanitizer::getPassName()

Modified:
    llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Modified: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp?rev=148697&r1=148696&r2=148697&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp Mon Jan 23 05:22:43 2012
@@ -143,6 +143,7 @@
 /// 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 @@
   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);





More information about the llvm-commits mailing list