From 232e4448242ec67d6a7b48906002ab7c3f7af96c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 25 Sep 2009 23:33:20 +0000 Subject: Move MachineMemOperand::getAlignment out of line, to avoid needing MathExtras.h in MachineMemOperand.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82822 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineMemOperand.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/llvm') diff --git a/include/llvm/CodeGen/MachineMemOperand.h b/include/llvm/CodeGen/MachineMemOperand.h index dd70b81..b7e267d 100644 --- a/include/llvm/CodeGen/MachineMemOperand.h +++ b/include/llvm/CodeGen/MachineMemOperand.h @@ -16,8 +16,6 @@ #ifndef LLVM_CODEGEN_MACHINEMEMOPERAND_H #define LLVM_CODEGEN_MACHINEMEMOPERAND_H -#include "llvm/Support/MathExtras.h" - namespace llvm { class Value; @@ -76,9 +74,7 @@ public: /// getAlignment - Return the minimum known alignment in bytes of the /// actual memory reference. - uint64_t getAlignment() const { - return MinAlign(getBaseAlignment(), getOffset()); - } + uint64_t getAlignment() const; /// getBaseAlignment - Return the minimum known alignment in bytes of the /// base address, without the offset. -- cgit v1.1