diff options
author | Alexander Potapenko <glider@google.com> | 2012-01-23 11:22:43 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2012-01-23 11:22:43 +0000 |
commit | 25878042030e85c244b41bfcdfad27c32360e2ec (patch) | |
tree | 7da74349f7f9b2534bbfd987c4bf299aa3020df9 /lib | |
parent | db4b85f532314e5972fedb1c1e04820de3cabc83 (diff) | |
download | external_llvm-25878042030e85c244b41bfcdfad27c32360e2ec.zip external_llvm-25878042030e85c244b41bfcdfad27c32360e2ec.tar.gz external_llvm-25878042030e85c244b41bfcdfad27c32360e2ec.tar.bz2 |
Implemented AddressSanitizer::getPassName()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Instrumentation/AddressSanitizer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/lib/Transforms/Instrumentation/AddressSanitizer.cpp index e645a9f..6ee9550 100644 --- a/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -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); |