Skip to content

Commit eec9d1c

Browse files
committed
Fix Minor issues
1 parent 38c6c5b commit eec9d1c

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

compiler-rt/lib/orc/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#include "error.h"
1818
#include "executor_address.h"
1919
#include "orc_rt/c_api.h"
20-
#include <type_traits>
2120
#include <algorithm>
21+
#include <type_traits>
2222
#include <vector>
2323

2424
/// This macro should be used to define tags that will be associated with

llvm/include/llvm/ExecutionEngine/Orc/ELFNixPlatform.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ class ELFNixPlatform : public Platform {
179179
// Associate ELFNixPlatform JIT-side runtime support functions with handlers.
180180
Error associateRuntimeSupportFunctions(JITDylib &PlatformJD);
181181

182-
void pushInitializersLoop(PushInitializersSendResultFn SendResult, JITDylibSP JD);
182+
void pushInitializersLoop(PushInitializersSendResultFn SendResult,
183+
JITDylibSP JD);
183184

184185
void rt_recordInitializers(PushInitializersSendResultFn SendResult,
185186
ExecutorAddr JDHeader);
@@ -190,8 +191,8 @@ class ELFNixPlatform : public Platform {
190191
// Records the addresses of runtime symbols used by the platform.
191192
Error bootstrapELFNixRuntime(JITDylib &PlatformJD);
192193

193-
Error registerPerObjectSections(
194-
jitlink::LinkGraph &G,const ELFPerObjectSectionsToRegister &POSR);
194+
Error registerPerObjectSections(jitlink::LinkGraph &G,
195+
const ELFPerObjectSectionsToRegister &POSR);
195196

196197
Expected<uint64_t> createPThreadKey();
197198

@@ -267,5 +268,4 @@ using SPSELFNixJITDylibDepInfoMap =
267268
} // end namespace orc
268269
} // end namespace llvm
269270

270-
#endif // LLVM_EXECUTIONENGINE_ORC_ELFNIXPLATFORM_H
271-
271+
#endif // LLVM_EXECUTIONENGINE_ORC_ELFNIXPLATFORM_H

llvm/lib/ExecutionEngine/Orc/ELFNixPlatform.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//===------ ELFNixPlatform.cpp - Utilities for executing ELFNix in Orc -----===//
1+
//===------ ELFNixPlatform.cpp - Utilities for executing ELFNix in Orc
2+
//-----===//
23
//
34
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
45
// See https://llvm.org/LICENSE.txt for license information.
@@ -812,11 +813,11 @@ Error ELFNixPlatform::ELFNixPlatformPlugin::registerInitSections(
812813
auto &JBS = MP.JDBootstrapStates[&JD];
813814
for (auto &I : ELFNixPlatformSecs)
814815
JBS.Initializers.push_back(I);
815-
/*G.allocActions().push_back(
816-
{{},
817-
cantFail(WrapperFunctionCall::Create<SPSRegisterInitSectionsArgs>(
818-
MP.orc_rt_elfnix_deregister_init_sections, HeaderAddr,
819-
ELFNixPlatformSecs))});*/
816+
/*G.allocActions().push_back(
817+
{{},
818+
cantFail(WrapperFunctionCall::Create<SPSRegisterInitSectionsArgs>(
819+
MP.orc_rt_elfnix_deregister_init_sections, HeaderAddr,
820+
ELFNixPlatformSecs))});*/
820821
} else {
821822
G.allocActions().push_back(
822823
{cantFail(WrapperFunctionCall::Create<SPSRegisterInitSectionsArgs>(

0 commit comments

Comments
 (0)