File tree 2 files changed +3
-18
lines changed 2 files changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ class Llvm
428
428
private:
429
429
const unsigned ROOT_FUNC_IDX = 0 ;
430
430
431
- bool initializeFunctions ();
431
+ void initializeFunctions ();
432
432
void generateProlog ();
433
433
void initializeShadowStack ();
434
434
void initializeLocals ();
Original file line number Diff line number Diff line change 14
14
//
15
15
void Llvm::Compile ()
16
16
{
17
- if (initializeFunctions ())
18
- {
19
- return ;
20
- }
21
-
17
+ initializeFunctions ();
22
18
initializeDebugInfo ();
23
19
24
20
JITDUMPEXEC (_compiler->fgDispBasicBlocks ());
@@ -41,7 +37,7 @@ void Llvm::Compile()
41
37
verifyGeneratedCode ();
42
38
}
43
39
44
- bool Llvm::initializeFunctions ()
40
+ void Llvm::initializeFunctions ()
45
41
{
46
42
const char * mangledName = GetMangledMethodName (m_info->compMethodHnd );
47
43
Function* rootLlvmFunction = getOrCreateKnownLlvmFunction (mangledName, [=]() { return createFunctionType (); });
@@ -60,15 +56,6 @@ bool Llvm::initializeFunctions()
60
56
rootLlvmFunction->addFnAttr (llvm::Attribute::NoInline);
61
57
}
62
58
63
- // TODO-LLVM: investigate.
64
- if (!strcmp (mangledName, " S_P_CoreLib_System_Globalization_CalendarData__EnumCalendarInfo" ))
65
- {
66
- llvm::BasicBlock* llvmBlock = llvm::BasicBlock::Create (m_context->Context , " " , rootLlvmFunction);
67
- _builder.SetInsertPoint (llvmBlock);
68
- _builder.CreateRet (_builder.getInt8 (0 ));
69
- return true ;
70
- }
71
-
72
59
// First function is always the root.
73
60
m_functions = std::vector<FunctionInfo>(_compiler->compFuncCount ());
74
61
m_functions[ROOT_FUNC_IDX] = {rootLlvmFunction};
@@ -182,8 +169,6 @@ bool Llvm::initializeFunctions()
182
169
183
170
m_EHUnwindLlvmBlocks[ehIndex] = dispatchLlvmBlock;
184
171
}
185
-
186
- return false ;
187
172
}
188
173
189
174
void Llvm::generateProlog ()
You can’t perform that action at this time.
0 commit comments