summaryrefslogtreecommitdiff
path: root/src/inc
diff options
context:
space:
mode:
authorBrian Sullivan <briansul@microsoft.com>2017-06-14 18:44:12 -0700
committerBrian Sullivan <briansul@microsoft.com>2017-06-14 18:44:12 -0700
commitf79d7e81f70739ab9ae266382aecdfd8c750d06d (patch)
tree79b9a41677b7f1f39d15135cdef37ed3d221c92a /src/inc
parent7f00fec141ca1b222b1c113d2de055e80728bb99 (diff)
downloadcoreclr-f79d7e81f70739ab9ae266382aecdfd8c750d06d.tar.gz
coreclr-f79d7e81f70739ab9ae266382aecdfd8c750d06d.tar.bz2
coreclr-f79d7e81f70739ab9ae266382aecdfd8c750d06d.zip
Crossgen - Disable the Target-dependent SIMD vector types warning
When a SIMD type is referenced during CEEPreloader instead of loading it we throw a type load exception with a unique resource ID and message. This commit changed the ICorCompileDataStore interface to allow us to pass the unique resource ID over to the zapper from the VM. The Zapper can then demote certain resource ID warnings down to the lowest informational level, so that they aren't printed out during crossgen. With this commit we currently are demoting IDS_EE_SIMD_NGEN_DISALLOWED
Diffstat (limited to 'src/inc')
-rw-r--r--src/inc/corcompile.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/inc/corcompile.h b/src/inc/corcompile.h
index f1c2314499..d7ac28d89f 100644
--- a/src/inc/corcompile.h
+++ b/src/inc/corcompile.h
@@ -1378,9 +1378,12 @@ class ICorCompileDataStore
// Returns ZapImage
virtual ZapImage * GetZapImage() = 0;
- // Reports an error during preloading. Return the error code to propagate,
- // or S_OK to ignore the error
- virtual void Error(mdToken token, HRESULT hr, LPCWSTR description) = 0;
+ // Report an error during preloading:
+ // 'token' is the metadata token that triggered the error
+ // hr is the HRESULT from the thrown Exception, or S_OK if we don't have an thrown exception
+ // resID is the resourceID with additional information from the thrown Exception, or 0
+ //
+ virtual void Error(mdToken token, HRESULT hr, UINT _resID, LPCWSTR description) = 0;
};