Rename for truth in advertising.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27063 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Laskey 2006-03-24 09:50:27 +00:00
parent 2d395d9f65
commit 0892cee81f
2 changed files with 3 additions and 3 deletions

View File

@ -163,7 +163,7 @@ namespace llvm {
/// DbgDeclareInst - This represents the llvm.dbg.declare instruction.
///
struct DbgDeclareInst : public DbgInfoIntrinsic {
Value *getAllocA() const { return StripCast(getOperand(1)); }
Value *getAddress() const { return StripCast(getOperand(1)); }
Value *getVariable() const { return StripCast(getOperand(2)); }
// Methods for support type inquiry through isa, cast, and dyn_cast:

View File

@ -1187,8 +1187,8 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
if (DebugInfo && DebugInfo->Verify(DI.getVariable())) {
std::vector<SDOperand> Ops;
SDOperand AllocaOp = getValue(I.getOperand(1));
if (FrameIndexSDNode *FI = dyn_cast<FrameIndexSDNode>(AllocaOp)) {
SDOperand AddressOp = getValue(DI.getAddress());
if (FrameIndexSDNode *FI = dyn_cast<FrameIndexSDNode>(AddressOp)) {
DebugInfo->RecordVariable(DI.getVariable(), FI->getIndex());
}
}