mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Print argc as well as argv
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
89fab07abd
commit
83702d3f30
@ -1,9 +1,7 @@
|
|||||||
%.LC0 = internal global [14 x sbyte] c"in getoptions\00" ; <[14 x sbyte]*> [#uses=1]
|
%.LC0 = internal global [10 x sbyte] c"argc: %d\0A\00"
|
||||||
|
|
||||||
implementation ; Functions:
|
implementation ; Functions:
|
||||||
|
|
||||||
void %__main() { ret void }
|
|
||||||
|
|
||||||
declare int %puts(sbyte*)
|
declare int %puts(sbyte*)
|
||||||
|
|
||||||
void %getoptions(int* %argc) {
|
void %getoptions(int* %argc) {
|
||||||
@ -11,12 +9,14 @@ bb0: ; No predecessors!
|
|||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare int %printf(sbyte*, ...)
|
||||||
|
|
||||||
int %main(int %argc, sbyte** %argv) {
|
int %main(int %argc, sbyte** %argv) {
|
||||||
bb0: ; No predecessors!
|
bb0: ; No predecessors!
|
||||||
|
call int (sbyte*, ...)* %printf( sbyte* getelementptr ([10 x sbyte]* %.LC0, long 0, long 0), int %argc)
|
||||||
%cast224 = cast sbyte** %argv to sbyte* ; <sbyte*> [#uses=1]
|
%cast224 = cast sbyte** %argv to sbyte* ; <sbyte*> [#uses=1]
|
||||||
%local = alloca sbyte* ; <sbyte**> [#uses=3]
|
%local = alloca sbyte* ; <sbyte**> [#uses=3]
|
||||||
store sbyte* %cast224, sbyte** %local
|
store sbyte* %cast224, sbyte** %local
|
||||||
call void %__main( )
|
|
||||||
%cond226 = setle int %argc, 0 ; <bool> [#uses=1]
|
%cond226 = setle int %argc, 0 ; <bool> [#uses=1]
|
||||||
br bool %cond226, label %bb3, label %bb2
|
br bool %cond226, label %bb3, label %bb2
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user