summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineMemOperand.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-25 23:33:20 +0000
committerDan Gohman <gohman@apple.com>2009-09-25 23:33:20 +0000
commit4b2ebc19288491cb068f268c311d9fef0ec6a29f (patch)
tree2d1abf112fa619902819418ada0168ae95cc1d8e /include/llvm/CodeGen/MachineMemOperand.h
parent295a8089cd76079d3e2798c6a44ee249852cab12 (diff)
downloadllvm-4b2ebc19288491cb068f268c311d9fef0ec6a29f.tar.gz
llvm-4b2ebc19288491cb068f268c311d9fef0ec6a29f.tar.bz2
llvm-4b2ebc19288491cb068f268c311d9fef0ec6a29f.tar.xz
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
Diffstat (limited to 'include/llvm/CodeGen/MachineMemOperand.h')
-rw-r--r--include/llvm/CodeGen/MachineMemOperand.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/MachineMemOperand.h b/include/llvm/CodeGen/MachineMemOperand.h
index dd70b81dd5..b7e267dd13 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.