Fix indentation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19649 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-01-17 23:25:45 +00:00
parent a8b6f68a55
commit e9fe2bcac2

View File

@ -33,25 +33,24 @@ namespace llvm {
/// with BP or SP and Disp being offsetted accordingly. The displacement may /// with BP or SP and Disp being offsetted accordingly. The displacement may
/// also include the offset of a global value. /// also include the offset of a global value.
struct X86AddressMode { struct X86AddressMode {
enum { enum {
RegBase, RegBase,
FrameIndexBase, FrameIndexBase,
} BaseType; } BaseType;
union { union {
unsigned Reg; unsigned Reg;
int FrameIndex; int FrameIndex;
} Base; } Base;
unsigned Scale; unsigned Scale;
unsigned IndexReg; unsigned IndexReg;
unsigned Disp; unsigned Disp;
GlobalValue *GV; GlobalValue *GV;
X86AddressMode() : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), X86AddressMode() : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(0) {
GV(NULL) { Base.Reg = 0;
Base.Reg = 0; }
}
}; };
/// addDirectMem - This function is used to add a direct memory reference to the /// addDirectMem - This function is used to add a direct memory reference to the