Skip to content

Commit 139d737

Browse files
arsenmtru
authored andcommitted
Move out of line
1 parent f12830a commit 139d737

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

llvm/include/llvm/CodeGen/FastISel.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,7 @@ class FastISel {
278278
Register getRegForGEPIndex(MVT PtrVT, const Value *Idx);
279279

280280
/// Retained for ABI compatibility in release branch.
281-
Register getRegForGEPIndex(const Value *Idx) {
282-
return getRegForGEPIndex(TLI.getPointerTy(DL), Idx);
283-
}
281+
Register getRegForGEPIndex(const Value *Idx);
284282

285283
/// We're checking to see if we can fold \p LI into \p FoldInst. Note
286284
/// that we could have a sequence where multiple LLVM IR instructions are

llvm/lib/CodeGen/SelectionDAG/FastISel.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,10 @@ Register FastISel::getRegForGEPIndex(MVT PtrVT, const Value *Idx) {
397397
return IdxN;
398398
}
399399

400+
Register FastISel::getRegForGEPIndex(const Value *Idx) {
401+
return getRegForGEPIndex(TLI.getPointerTy(DL), Idx);
402+
}
403+
400404
void FastISel::recomputeInsertPt() {
401405
if (getLastLocalValue()) {
402406
FuncInfo.InsertPt = getLastLocalValue();

0 commit comments

Comments
 (0)