Commit ac230129 by Nicolas Capens

Abstract llvm::Type usage.

Bug swiftshader:10 Change-Id: I86b80cb03ff48ff7273aaf23a8e4995b3436f825 Reviewed-on: https://swiftshader-review.googlesource.com/7274Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 0e33ae3e
...@@ -67,7 +67,7 @@ Routine *routine = function(L"one"); ...@@ -67,7 +67,7 @@ Routine *routine = function(L"one");
Finally, we can obtain the function pointer to the entry point of the routine, and call it: Finally, we can obtain the function pointer to the entry point of the routine, and call it:
```C++ ```C++
int (*callable)() = (int(*)())function.getEntry(); int (*callable)() = (int(*)())routine->getEntry();
int result = callable(); int result = callable();
assert(result == 1); assert(result == 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment