Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit ec660bd

Browse files
committed
Cleanup
1 parent a9bd79f commit ec660bd

File tree

12 files changed

+15
-15
lines changed

12 files changed

+15
-15
lines changed

src/jit/importer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19907,6 +19907,7 @@ void Compiler::impMarkInlineCandidateHelper(GenTreeCall* call,
1990719907
inlineResult.NoteFatal(InlineObservation::CALLSITE_IS_CALL_TO_HELPER);
1990819908
return;
1990919909
}
19910+
1991019911
/* Ignore indirect calls */
1991119912
if (call->gtCallType == CT_INDIRECT)
1991219913
{

src/tools/crossgen/crossgen.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ void PrintUsageHelper()
106106
Output(
107107
W("Usage: crossgen [args] <assembly name>\n")
108108
W("\n")
109-
// Command-Line switch help
110109
W(" /? or /help - Display this screen\n")
111110
W(" /nologo - Prevents displaying the logo\n")
112111
W(" /silent - Do not display completion message\n")
@@ -122,8 +121,6 @@ void PrintUsageHelper()
122121
W(" - List of paths containing localized assembly directories\n")
123122
W(" /App_Paths <path[") PATH_SEPARATOR_STR_W W("path]>\n")
124123
W(" - List of paths containing user-application assemblies and resources\n")
125-
W(" /Version_Bubble_Assembly_Paths <path[") PATH_SEPARATOR_STR_W W("path]>\n")
126-
W(" - List of paths containing assemblies contained in a single version bubble\n")
127124
#ifndef NO_NGENPDB
128125
W(" /App_Ni_Paths <path[") PATH_SEPARATOR_STR_W W("path]>\n")
129126
W(" - List of paths containing user-application native images\n")
@@ -474,7 +471,6 @@ int _cdecl wmain(int argc, __in_ecount(argc) WCHAR **argv)
474471
dwFlags |= NGENWORKER_FLAGS_READYTORUN;
475472
while (argc > 0)
476473
{
477-
// Command-line parsing
478474
if (MatchParameter(*argv, W("?"))
479475
|| MatchParameter(*argv, W("help")))
480476
{

src/tools/r2rdump/R2RSection.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public enum SectionType
2828
READYTORUN_SECTION_INSTANCE_METHOD_ENTRYPOINTS = 109,
2929
READYTORUN_SECTION_INLINING_INFO = 110,
3030
READYTORUN_SECTION_PROFILEDATA_INFO = 111,
31-
READYTORUN_SECTION_MANIFEST_METADATA = 112 // Added in V2.2
3231
}
3332

3433
/// <summary>

src/utilcode/pedecoder.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2474,6 +2474,8 @@ CORCOMPILE_METHOD_PROFILE_LIST *PEDecoder::GetNativeProfileDataList(COUNT_T * pS
24742474
RETURN PTR_CORCOMPILE_METHOD_PROFILE_LIST(GetDirectoryData(pDir));
24752475
}
24762476

2477+
2478+
24772479
PTR_CVOID PEDecoder::GetNativeManifestMetadata(COUNT_T *pSize) const
24782480
{
24792481
CONTRACT(PTR_CVOID)

src/vm/ceeload.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10054,7 +10054,8 @@ IMDInternalImport *Module::GetNativeAssemblyImport(BOOL loadAllowed)
1005410054
POSTCONDITION(CheckPointer(RETVAL));
1005510055
}
1005610056
CONTRACT_END;
10057-
// Check if Image is even R2R?
10057+
10058+
// Check if image is R2R
1005810059
if (GetFile()->IsILImageReadyToRun())
1005910060
{
1006010061
RETURN GetFile()->GetOpenedILimage()->GetNativeMDImport(loadAllowed);

src/vm/jitinterface.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,7 @@ BOOL CEEInfo::shouldEnforceCallvirtRestriction(
676676
// and the impact of the cut was vetted with partners. It would not be appropriate
677677
// to increase that unreported set without additional review.
678678

679-
// This needs to be updated to allow cross-assembly inlining
680-
// TODO Undo this once prototyping is finished
679+
681680
bool IsInSameVersionBubble(Assembly * current, Assembly * target)
682681
{
683682
LIMITED_METHOD_CONTRACT;

src/vm/peimage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ IMDInternalImport* PEImage::GetNativeMDImport(BOOL loadAllowed)
467467
MODE_ANY;
468468
}
469469
CONTRACTL_END;
470-
// Does this need to be something else? It might work either way
470+
471471
if (m_pNativeMDImport == NULL)
472472
{
473473
if (loadAllowed)

src/vm/readytoruninfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,7 @@ ReadyToRunInfo::ReadyToRunInfo(Module * pModule, PEImageLayout * pLayout, READYT
620620
}
621621
}
622622

623-
// TODO Change to incremented version
624-
if (IsLargeVersionBubbleEnabled() && IsImageVersionAtLeast(2, 2))
623+
if (IsLargeVersionBubbleEnabled())
625624
{
626625
IMAGE_DATA_DIRECTORY * pManifestMetadata = FindSection(READYTORUN_SECTION_MANIFEST_METADATA);
627626
if (pManifestMetadata != NULL)

src/zap/zapimage.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,10 @@ HANDLE ZapImage::GenerateFile(LPCWSTR wszOutputFileName, CORCOMPILE_NGEN_SIGNATU
10821082

10831083
HANDLE ZapImage::SaveImage(LPCWSTR wszOutputFileName, LPCWSTR wszDllPath, CORCOMPILE_NGEN_SIGNATURE * pNativeImageSig)
10841084
{
1085-
OutputManifestMetadata();
1085+
if(IsLargeVersionBubbleEnabled())
1086+
{
1087+
OutputManifestMetadata();
1088+
}
10861089

10871090
OutputTables();
10881091

tests/src/readytorun/tests/versionbubbles/helper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ public string GetLastMethodName()
1010
StackTrace st = new StackTrace();
1111
return st.GetFrame(0).GetMethod().Name;
1212
}
13-
}
13+
}

0 commit comments

Comments
 (0)