aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-02-15 01:29:57 +0000
committerDan Gohman <gohman@apple.com>2008-02-15 01:29:57 +0000
commit9ae39b5cb3998ed93a75c996724ad87a7f2d07da (patch)
tree3598ec756549298242cfa2c44b5f8b340011e01b
parent9d9b204d6a155f4778a9009c643eed5bf59148e2 (diff)
Change MemOperand's size and offset to be 64-bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47151 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/MemOperand.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/MemOperand.h b/include/llvm/CodeGen/MemOperand.h
index e9f05f3eed..296ed132fd 100644
--- a/include/llvm/CodeGen/MemOperand.h
+++ b/include/llvm/CodeGen/MemOperand.h
@@ -31,8 +31,8 @@ class Value;
class MemOperand {
const Value *V;
unsigned int Flags;
- int Offset;
- int Size;
+ int64_t Offset;
+ uint64_t Size;
unsigned int Alignment;
public:
@@ -48,7 +48,8 @@ public:
/// MemOperand - Construct an MemOperand object with the specified
/// address Value, flags, offset, size, and alignment.
- MemOperand(const Value *v, unsigned int f, int o, int s, unsigned int a)
+ MemOperand(const Value *v, unsigned int f, int64_t o, uint64_t s,
+ unsigned int a)
: V(v), Flags(f), Offset(o), Size(s), Alignment(a) {}
/// getValue - Return the base address of the memory access.
@@ -63,10 +64,10 @@ public:
/// getOffset - For normal values, this is a byte offset added to the base
/// address. For PseudoSourceValue::FPRel values, this is the FrameIndex
/// number.
- int getOffset() const { return Offset; }
+ int64_t getOffset() const { return Offset; }
/// getSize - Return the size in bytes of the memory reference.
- int getSize() const { return Size; }
+ uint64_t getSize() const { return Size; }
/// getAlignment - Return the minimum known alignment in bytes of the
/// memory reference.