summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-04-25 21:03:54 +0000
committerDale Johannesen <dalej@apple.com>2010-04-25 21:03:54 +0000
commit1fc01985a3ad97ca48a3b130bb3da619e16d2634 (patch)
treea6e5cf6e928ca01ee0448693ec8767a899a89cd3 /llvm/lib/CodeGen
parent861eb80a3b9d83c81a0a9ab963eff929bb4a25fa (diff)
downloadbcm5719-llvm-1fc01985a3ad97ca48a3b130bb3da619e16d2634.tar.gz
bcm5719-llvm-1fc01985a3ad97ca48a3b130bb3da619e16d2634.zip
Add comment re byval args. Doesn't actually work this way yet.
xs llvm-svn: 102316
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index c40eaf62928..8aa37a06dc2 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -340,6 +340,8 @@ bool FastISel::SelectCall(const User *I) {
return true;
const AllocaInst *AI = dyn_cast<AllocaInst>(Address);
// Don't handle byval struct arguments or VLAs, for example.
+ // Note that if we have a byval struct argument, fast ISel is turned off;
+ // those are handled in SelectionDAGBuilder.
if (!AI) break;
DenseMap<const AllocaInst*, int>::iterator SI =
StaticAllocaMap.find(AI);
@@ -347,7 +349,7 @@ bool FastISel::SelectCall(const User *I) {
int FI = SI->second;
if (!DI->getDebugLoc().isUnknown())
MF.getMMI().setVariableDbgInfo(DI->getVariable(), FI, DI->getDebugLoc());
-
+
// Building the map above is target independent. Generating DBG_VALUE
// inline is target dependent; do this now.
(void)TargetSelectInstruction(cast<Instruction>(I));
OpenPOWER on IntegriCloud