mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Implemented AddressSanitizer::getPassName()
llvm-svn: 148697
This commit is contained in:
parent
7a14d1dab9
commit
bd636a5fe8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user