Extract cleanup changes from #21793. (#21852)
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>
Tue, 8 Jan 2019 22:50:42 +0000 (14:50 -0800)
committerGitHub <noreply@github.com>
Tue, 8 Jan 2019 22:50:42 +0000 (14:50 -0800)
commit41dfe19d1ffe00edfdaa837a3b46aea5a8036617
treea93deb907765936a0067554120664396bcc3f2cb
parentf27337157392bbafd0cf69835d7ec3045a1dc08b
Extract cleanup changes from #21793. (#21852)

* Cleanup changes from #21793.

* Emit the data pointer offset directly into the IL stream (and calculate it as needed instead of passing it through)

* Fix broken assumption that OverrideProcArgs::na::m_pMT is the array type instead of the element type (which it was).
src/vm/ilmarshalers.cpp
src/vm/ilmarshalers.h
src/vm/mlinfo.cpp
src/vm/mlinfo.h
src/vm/stubgen.cpp
src/vm/stubgen.h
tests/src/Interop/PInvoke/Array/MarshalArrayAsParam/AsDefault/AsDefaultTest.cs
tests/src/Interop/PInvoke/Array/MarshalArrayAsParam/AsLPArray/AsLPArrayTest.cs