mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Stop using abegin and aend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dadf88123f
commit
1d9f262b9d
@ -61,8 +61,8 @@ int main() {
|
||||
Value *One = ConstantSInt::get(Type::IntTy, 1);
|
||||
|
||||
// Get pointers to the integer argument of the add1 function...
|
||||
assert(Add1F->abegin() != Add1F->aend()); // Make sure there's an arg
|
||||
Argument *ArgX = Add1F->abegin(); // Get the arg
|
||||
assert(Add1F->arg_begin() != Add1F->arg_end()); // Make sure there's an arg
|
||||
Argument *ArgX = Add1F->arg_begin(); // Get the arg
|
||||
ArgX->setName("AnArg"); // Give it a nice symbolic name for fun.
|
||||
|
||||
// Create the add instruction, inserting it into the end of BB.
|
||||
|
Loading…
x
Reference in New Issue
Block a user