Fix bug in GBC expansion wrt invoke return types.

An invoke may return a value but that value is then unused. In this situation
mir_to_gbc will see there is no use and generate a call with a void result.
GBC expansion looks at return types to determine the result of a call, leading
to it converting void calls back to ones returning ints and causing assertion
failures in LLVM.

This change bases the return type of the expanded call on the type of the call
instruction it is expanding.

The change contains some other minor bits of LLVM codegen clean-up.

Change-Id: Ia49e7308a641c96892df21662a5a04696a955e00
1 file changed
tree: ac01b8f4319f2274b87ff228ccdd91391ba45724
  1. build/
  2. jdwpspy/
  3. src/
  4. test/
  5. tools/
  6. .gitignore
  7. Android.mk