mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Adjust for changes in GenericValue type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -112,10 +112,10 @@ int main(int argc, char **argv) {
|
||||
|
||||
// Call the Fibonacci function with argument n:
|
||||
std::vector<GenericValue> Args(1);
|
||||
Args[0].Int32Val = n;
|
||||
Args[0].IntVal = APInt(32, n);
|
||||
GenericValue GV = EE->runFunction(FibF, Args);
|
||||
|
||||
// import result of execution
|
||||
std::cout << "Result: " << GV.Int32Val << "\n";
|
||||
std::cout << "Result: " << GV.IntVal.toString(10) << "\n";
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user