mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
warmup ritual: use high-level argument accessors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106563 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23a8fc6e48
commit
07f639fca4
@ -54,7 +54,7 @@ Value *DbgInfoIntrinsic::StripCast(Value *C) {
|
||||
///
|
||||
|
||||
Value *DbgDeclareInst::getAddress() const {
|
||||
if (MDNode* MD = cast_or_null<MDNode>(getOperand(1)))
|
||||
if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0)))
|
||||
return MD->getOperand(0);
|
||||
else
|
||||
return NULL;
|
||||
@ -65,9 +65,9 @@ Value *DbgDeclareInst::getAddress() const {
|
||||
///
|
||||
|
||||
const Value *DbgValueInst::getValue() const {
|
||||
return cast<MDNode>(getOperand(1))->getOperand(0);
|
||||
return cast<MDNode>(getArgOperand(0))->getOperand(0);
|
||||
}
|
||||
|
||||
Value *DbgValueInst::getValue() {
|
||||
return cast<MDNode>(getOperand(1))->getOperand(0);
|
||||
return cast<MDNode>(getArgOperand(0))->getOperand(0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user