From f0a93ed9c59d706494496c6fe4e8354864d24aa7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 24 Feb 2003 20:48:32 +0000 Subject: Rename Instruction::hasSideEffects() -> mayWriteToMemory() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5620 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Instruction.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/llvm/Instruction.h') diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index ca01e30..5f61b2d 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -55,7 +55,9 @@ public: Instruction *getPrev() { return Prev; } const Instruction *getPrev() const { return Prev; } - virtual bool hasSideEffects() const { return false; } // Memory & Call insts + /// mayWriteToMemory - Return true if this instruction may modify memory. + /// + virtual bool mayWriteToMemory() const { return false; } // --------------------------------------------------------------------------- /// Subclass classification... getOpcode() returns a member of -- cgit v1.1