diff options
author | Jan Kotas <jkotas@microsoft.com> | 2018-11-21 08:23:30 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-21 08:23:30 -0800 |
commit | c94d8e68222d931d4bb1c4eb9a52b4b056e85f12 (patch) | |
tree | 8698c9c4e26b58feee82d8e743ca9e5d89f1f2c6 /src/vm/ceeload.cpp | |
parent | 5e1cee78e6e7a2464deee07acfe5fe9c33925828 (diff) | |
download | coreclr-c94d8e68222d931d4bb1c4eb9a52b4b056e85f12.tar.gz coreclr-c94d8e68222d931d4bb1c4eb9a52b4b056e85f12.tar.bz2 coreclr-c94d8e68222d931d4bb1c4eb9a52b4b056e85f12.zip |
Delete dead/unused code (#21138)
Diffstat (limited to 'src/vm/ceeload.cpp')
-rw-r--r-- | src/vm/ceeload.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/vm/ceeload.cpp b/src/vm/ceeload.cpp index 9c272e9b24..bebd400f5c 100644 --- a/src/vm/ceeload.cpp +++ b/src/vm/ceeload.cpp @@ -3947,16 +3947,6 @@ BOOL Module::IsSymbolReadingEnabled() } CONTRACTL_END; - // The only time we need symbols available is for debugging and taking stack traces, - // neither of which can be done if the assembly can't run. The advantage of being strict - // is that there is a perf penalty adding types to a module if you must support reading - // symbols at any time. If symbols don't need to be accesible then we can - // optimize by only commiting symbols when the assembly is saved to disk. See DDB 671107. - if(!GetAssembly()->HasRunAccess()) - { - return FALSE; - } - // If the module has symbols in-memory (eg. RefEmit) that are in ILDB // format, then there isn't any reason not to supply them. The reader // code is always available, and we trust it's security. @@ -4247,12 +4237,6 @@ BOOL Module::IsVisibleToDebugger() return FALSE; } - // If for whatever other reason, we can't run it, then don't notify the debugger about it. - Assembly * pAssembly = GetAssembly(); - if (!pAssembly->HasRunAccess()) - { - return FALSE; - } return TRUE; } |