summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2012-01-23 11:22:43 +0000
committerAlexander Potapenko <glider@google.com>2012-01-23 11:22:43 +0000
commitc94cf8faf6e30a362af5380ef9a2c4240ef7f58a (patch)
treeef3102eb4685c9ff2165a55a6db36b85a6f930b1 /llvm/lib/Transforms
parent046ecc06be005d742435a37d25e2e515a41d3e34 (diff)
downloadbcm5719-llvm-c94cf8faf6e30a362af5380ef9a2c4240ef7f58a.tar.gz
bcm5719-llvm-c94cf8faf6e30a362af5380ef9a2c4240ef7f58a.zip
Implemented AddressSanitizer::getPassName()
llvm-svn: 148697
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index e645a9fdbdd..6ee9550043d 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud