diff options
| author | Devang Patel <dpatel@apple.com> | 2011-09-08 22:59:09 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-09-08 22:59:09 +0000 |
| commit | 9d904e1a978eb0a45ddd3317950f044b1cd758e5 (patch) | |
| tree | 940226cca18dcda981884973b1b8b84579807366 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
| parent | 33d39536e6a5a61eb651beab997819566e031273 (diff) | |
| download | bcm5719-llvm-9d904e1a978eb0a45ddd3317950f044b1cd758e5.tar.gz bcm5719-llvm-9d904e1a978eb0a45ddd3317950f044b1cd758e5.zip | |
Directly point debug info to the stack slot of the arugment, instead of trying to keep track of vreg in which it the arugment is copied. The LiveDebugVariable can keep track of variable's ranges.
llvm-svn: 139330
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 226edc64a1f..fbd0c623eb6 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -531,13 +531,10 @@ bool FastISel::SelectCall(const User *I) { unsigned Reg = 0; unsigned Offset = 0; if (const Argument *Arg = dyn_cast<Argument>(Address)) { - if (Arg->hasByValAttr()) { - // Byval arguments' frame index is recorded during argument lowering. - // Use this info directly. - Offset = FuncInfo.getByValArgumentFrameIndex(Arg); - if (Offset) - Reg = TRI.getFrameRegister(*FuncInfo.MF); - } + // Some arguments' frame index is recorded during argument lowering. + Offset = FuncInfo.getArgumentFrameIndex(Arg); + if (Offset) + Reg = TRI.getFrameRegister(*FuncInfo.MF); } if (!Reg) Reg = getRegForValue(Address); |

