summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-03-06 08:12:33 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-03-06 08:12:33 +0000
commit1d9baccc9b4d664a944f82eef9f708125e3f1552 (patch)
tree351a0e406db0b5601a2d9c421dd0ec3e9c1fa8c1 /lib/Target/ARM/ARMISelLowering.cpp
parent3c2319e245f2fa9282f347d5582e61218e102d60 (diff)
downloadllvm-1d9baccc9b4d664a944f82eef9f708125e3f1552.tar.gz
llvm-1d9baccc9b4d664a944f82eef9f708125e3f1552.tar.bz2
llvm-1d9baccc9b4d664a944f82eef9f708125e3f1552.tar.xz
Use new SDIselParamAttr enumeration. This removes "magick" constants
from formal attributes' flags processing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--lib/Target/ARM/ARMISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp
index f573198bae..88c6ad01d1 100644
--- a/lib/Target/ARM/ARMISelLowering.cpp
+++ b/lib/Target/ARM/ARMISelLowering.cpp
@@ -27,6 +27,7 @@
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/SelectionDAG.h"
+#include "llvm/CodeGen/SelectionDAGISel.h"
#include "llvm/CodeGen/SSARegMap.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/ADT/VectorExtras.h"
@@ -346,7 +347,7 @@ HowToPassArgument(MVT::ValueType ObjectVT, unsigned NumGPRs,
NeededGPRs = 0;
StackPad = 0;
GPRPad = 0;
- unsigned align = (Flags >> 27);
+ unsigned align = (Flags >> SDISelParamFlags::OrigAlignmentOffs);
GPRPad = NumGPRs % ((align + 3)/4);
StackPad = StackOffset % align;
unsigned firstGPR = NumGPRs + GPRPad;