Skip to content

Commit 9423971

Browse files
eymayweliveindetail
authored andcommitted
Fix typos in comments of ExecutionEngine (NFC)
Reviewed By: sgraenitz Differential Revision: https://reviews.llvm.org/D157226
1 parent a23d65a commit 9423971

33 files changed

+46
-46
lines changed

llvm/include/llvm-c/Orc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ void LLVMOrcDisposeSymbols(LLVMOrcSymbolStringPoolEntryRef *Symbols);
796796
* method returns an error then clients should log it and call
797797
* LLVMOrcMaterializationResponsibilityFailMaterialization. If no dependencies
798798
* have been registered for the symbols covered by this
799-
* MaterializationResponsibiility then this method is guaranteed to return
799+
* MaterializationResponsibility then this method is guaranteed to return
800800
* LLVMErrorSuccess.
801801
*/
802802
LLVMErrorRef LLVMOrcMaterializationResponsibilityNotifyResolved(
@@ -813,7 +813,7 @@ LLVMErrorRef LLVMOrcMaterializationResponsibilityNotifyResolved(
813813
* method returns an error then clients should log it and call
814814
* LLVMOrcMaterializationResponsibilityFailMaterialization.
815815
* If no dependencies have been registered for the symbols covered by this
816-
* MaterializationResponsibiility then this method is guaranteed to return
816+
* MaterializationResponsibility then this method is guaranteed to return
817817
* LLVMErrorSuccess.
818818
*/
819819
LLVMErrorRef LLVMOrcMaterializationResponsibilityNotifyEmitted(
@@ -839,7 +839,7 @@ LLVMErrorRef LLVMOrcMaterializationResponsibilityDefineMaterializing(
839839
/**
840840
* Notify all not-yet-emitted covered by this MaterializationResponsibility
841841
* instance that an error has occurred.
842-
* This will remove all symbols covered by this MaterializationResponsibilty
842+
* This will remove all symbols covered by this MaterializationResponsibility
843843
* from the target JITDylib, and send an error to any queries waiting on
844844
* these symbols.
845845
*/

llvm/include/llvm/ExecutionEngine/ExecutionEngine.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class ExecutionEngineState {
8787

8888
/// Erase an entry from the mapping table.
8989
///
90-
/// \returns The address that \p ToUnmap was happed to.
90+
/// \returns The address that \p ToUnmap was mapped to.
9191
uint64_t RemoveMapping(StringRef Name);
9292
};
9393

@@ -261,7 +261,7 @@ class ExecutionEngine {
261261
/// locally can use the getFunctionAddress call, which will generate code
262262
/// and apply final preparations all in one step.
263263
///
264-
/// This method has no effect for the interpeter.
264+
/// This method has no effect for the interpreter.
265265
virtual void generateCodeForModule(Module *M) {}
266266

267267
/// finalizeObject - ensure the module is fully processed and is usable.
@@ -270,7 +270,7 @@ class ExecutionEngine {
270270
/// object usable for execution. It should be called after sections within an
271271
/// object have been relocated using mapSectionAddress. When this method is
272272
/// called the MCJIT execution engine will reapply relocations for a loaded
273-
/// object. This method has no effect for the interpeter.
273+
/// object. This method has no effect for the interpreter.
274274
///
275275
/// Returns true on success, false on failure. Error messages can be retrieved
276276
/// by calling getError();

llvm/include/llvm/ExecutionEngine/JITEventListener.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class JITEventListener {
6060
/// a previously emitted object is released.
6161
virtual void notifyFreeingObject(ObjectKey K) {}
6262

63-
// Get a pointe to the GDB debugger registration listener.
63+
// Get a pointer to the GDB debugger registration listener.
6464
static JITEventListener *createGDBRegistrationListener();
6565

6666
#if LLVM_USE_INTEL_JITEVENTS

llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ class Symbol {
623623
this->S = static_cast<uint8_t>(S);
624624
}
625625

626-
/// Check wehther the given target flags are set for this Symbol.
626+
/// Check whether the given target flags are set for this Symbol.
627627
bool hasTargetFlags(TargetFlagsType Flags) const {
628628
return static_cast<TargetFlagsType>(TargetFlags) & Flags;
629629
}

llvm/include/llvm/ExecutionEngine/JITSymbol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class JITSymbolFlags {
100100
JITSymbolFlags(FlagNames Flags, TargetFlagsType TargetFlags)
101101
: TargetFlags(TargetFlags), Flags(Flags) {}
102102

103-
/// Implicitly convert to bool. Returs true if any flag is set.
103+
/// Implicitly convert to bool. Returns true if any flag is set.
104104
explicit operator bool() const { return Flags != None || TargetFlags != 0; }
105105

106106
/// Compare for equality.

llvm/include/llvm/ExecutionEngine/OProfileWrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class OProfileWrapper {
111111
// daemon is running
112112
bool initialize();
113113

114-
// Searches /proc for the oprofile daemon and returns true if the process if
114+
// Searches /proc for the oprofile daemon and returns true if the process is
115115
// found, or false otherwise.
116116
bool checkForOProfileProcEntry();
117117

llvm/include/llvm/ExecutionEngine/Orc/COFFVCRuntimeSupport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class COFFVCRuntimeBootstrapper {
3333
/// Try to create a COFFVCRuntimeBootstrapper instance. An optional
3434
/// RuntimePath can be given to specify the location of directory that
3535
/// contains all vc runtime library files such as ucrt.lib and msvcrt.lib. If
36-
/// not path was given, it will try to search the MSVC toolchain and Windows
36+
/// no path was given, it will try to search the MSVC toolchain and Windows
3737
/// SDK installation and use the found library files automatically.
3838
///
3939
/// Note that depending on the build setting, a different library
@@ -60,7 +60,7 @@ class COFFVCRuntimeBootstrapper {
6060
/// up COFFPlatform.
6161
Error initializeStaticVCRuntime(JITDylib &JD);
6262

63-
/// Adds symbol definitions of dynamic versino of msvc runtie libraries.
63+
/// Adds symbol definitions of dynamic version of msvc runtime libraries.
6464
Expected<std::vector<std::string>>
6565
loadDynamicVCRuntime(JITDylib &JD, bool DebugVersion = false);
6666

llvm/include/llvm/ExecutionEngine/Orc/CompileUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class SimpleCompiler : public IRCompileLayer::IRCompiler {
6161

6262
/// A SimpleCompiler that owns its TargetMachine.
6363
///
64-
/// This convenient for clients who don't want to own their TargetMachines,
64+
/// This is convenient for clients who don't want to own their TargetMachines,
6565
/// e.g. LLJIT.
6666
class TMOwningSimpleCompiler : public SimpleCompiler {
6767
public:

llvm/include/llvm/ExecutionEngine/Orc/Core.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ class MaterializationResponsibility {
579579
/// moved to the error state due to the failure of a dependency. If this
580580
/// method returns an error then clients should log it and call
581581
/// failMaterialize. If no dependencies have been registered for the
582-
/// symbols covered by this MaterializationResponsibiility then this method
582+
/// symbols covered by this MaterializationResponsibility then this method
583583
/// is guaranteed to return Error::success() and can be wrapped with cantFail.
584584
Error notifyResolved(const SymbolMap &Symbols);
585585

@@ -591,7 +591,7 @@ class MaterializationResponsibility {
591591
/// moved to the error state due to the failure of a dependency. If this
592592
/// method returns an error then clients should log it and call
593593
/// failMaterialize. If no dependencies have been registered for the
594-
/// symbols covered by this MaterializationResponsibiility then this method
594+
/// symbols covered by this MaterializationResponsibility then this method
595595
/// is guaranteed to return Error::success() and can be wrapped with cantFail.
596596
Error notifyEmitted();
597597

@@ -610,7 +610,7 @@ class MaterializationResponsibility {
610610

611611
/// Notify all not-yet-emitted covered by this MaterializationResponsibility
612612
/// instance that an error has occurred.
613-
/// This will remove all symbols covered by this MaterializationResponsibilty
613+
/// This will remove all symbols covered by this MaterializationResponsibility
614614
/// from the target JITDylib, and send an error to any queries waiting on
615615
/// these symbols.
616616
void failMaterialization();
@@ -1674,7 +1674,7 @@ class ExecutionSession {
16741674

16751675
/// Wrap a class method that takes concrete argument types (and a sender for
16761676
/// a concrete return type) to produce an AsyncHandlerWrapperFunction. Uses
1677-
/// SPS to unpack teh arguments and pack the result.
1677+
/// SPS to unpack the arguments and pack the result.
16781678
///
16791679
/// This function is intended to support easy construction of
16801680
/// AsyncHandlerWrapperFunctions that can be associated with a tag

llvm/include/llvm/ExecutionEngine/Orc/DebugUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ raw_ostream &operator<<(raw_ostream &OS, const MaterializationUnit &MU);
7070
raw_ostream &operator<<(raw_ostream &OS,
7171
const JITDylibLookupFlags &JDLookupFlags);
7272

73-
/// Rendar a SymbolLookupFlags instance.
73+
/// Render a SymbolLookupFlags instance.
7474
raw_ostream &operator<<(raw_ostream &OS, const SymbolLookupFlags &LookupFlags);
7575

7676
/// Render a SymbolLookupSet entry.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ELFNixPlatform : public Platform {
5858
/// given JITDylib.
5959
///
6060
/// The ORC runtime requires access to a number of symbols in
61-
/// libc++. It is up to the caller to ensure that the requried
61+
/// libc++. It is up to the caller to ensure that the required
6262
/// symbols can be referenced by code added to PlatformJD. The
6363
/// standard way to achieve this is to first attach dynamic library
6464
/// search generators for either the given process, or for the

llvm/include/llvm/ExecutionEngine/Orc/EPCGenericJITLinkMemoryManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class EPCGenericJITLinkMemoryManager : public jitlink::JITLinkMemoryManager {
6464
namespace shared {
6565

6666
/// FIXME: This specialization should be moved into TargetProcessControlTypes.h
67-
/// (or whereever those types get merged to) once ORC depends on JITLink.
67+
/// (or wherever those types get merged to) once ORC depends on JITLink.
6868
template <>
6969
class SPSSerializationTraits<SPSExecutorAddr,
7070
jitlink::JITLinkMemoryManager::FinalizedAlloc> {

llvm/include/llvm/ExecutionEngine/Orc/ExecutorProcessControl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class ExecutorProcessControl {
275275

276276
/// Search for symbols in the target process.
277277
///
278-
/// The result of the lookup is a 2-dimentional array of target addresses
278+
/// The result of the lookup is a 2-dimensional array of target addresses
279279
/// that correspond to the lookup order. If a required symbol is not
280280
/// found then this method will return an error. If a weakly referenced
281281
/// symbol is not found then it be assigned a '0' value.

llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ Expected<std::unique_ptr<JITCompileCallbackManager>>
475475
createLocalCompileCallbackManager(const Triple &T, ExecutionSession &ES,
476476
ExecutorAddr ErrorHandlerAddress);
477477

478-
/// Create a local indriect stubs manager builder.
478+
/// Create a local indirect stubs manager builder.
479479
///
480480
/// The given target triple will determine the ABI.
481481
std::function<std::unique_ptr<IndirectStubsManager>()>

llvm/include/llvm/ExecutionEngine/Orc/MachOPlatform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class MachOPlatform : public Platform {
4545
/// The ORC runtime requires access to a number of symbols in libc++, and
4646
/// requires access to symbols in libobjc, and libswiftCore to support
4747
/// Objective-C and Swift code. It is up to the caller to ensure that the
48-
/// requried symbols can be referenced by code added to PlatformJD. The
48+
/// required symbols can be referenced by code added to PlatformJD. The
4949
/// standard way to achieve this is to first attach dynamic library search
5050
/// generators for either the given process, or for the specific required
5151
/// libraries, to PlatformJD, then to create the platform instance:

llvm/include/llvm/ExecutionEngine/RTDyldMemoryManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class RTDyldMemoryManager : public MCJITMemoryManager,
6868
/// Register EH frames in the current process.
6969
static void registerEHFramesInProcess(uint8_t *Addr, size_t Size);
7070

71-
/// Deregister EH frames in the current proces.
71+
/// Deregister EH frames in the current process.
7272
static void deregisterEHFramesInProcess(uint8_t *Addr, size_t Size);
7373

7474
void registerEHFrames(uint8_t *Addr, uint64_t LoadAddr, size_t Size) override;

llvm/lib/ExecutionEngine/JITLink/COFFLinkGraphBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// Generic COFF LinkGraph buliding code.
9+
// Generic COFF LinkGraph building code.
1010
//
1111
//===----------------------------------------------------------------------===//
1212
#include "COFFLinkGraphBuilder.h"
@@ -606,7 +606,7 @@ COFFLinkGraphBuilder::exportCOMDATSymbol(COFFSymbolIndex SymIndex,
606606
object::COFFSymbolRef Symbol) {
607607
Block *B = getGraphBlock(Symbol.getSectionNumber());
608608
auto &PendingComdatExport = PendingComdatExports[Symbol.getSectionNumber()];
609-
// NOTE: ComdatDef->Legnth is the size of "section" not size of symbol.
609+
// NOTE: ComdatDef->Length is the size of "section" not size of symbol.
610610
// We use zero symbol size to not reach out of bound of block when symbol
611611
// offset is non-zero.
612612
auto GSym = &G->addDefinedSymbol(

llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// Generic ELF LinkGraph buliding code.
9+
// Generic ELF LinkGraph building code.
1010
//
1111
//===----------------------------------------------------------------------===//
1212

llvm/lib/ExecutionEngine/JITLink/ELFLinkGraphBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ELFLinkGraphBuilderBase {
5151
Section *CommonSection = nullptr;
5252
};
5353

54-
/// Ling-graph building code that's specific to the given ELFT, but common
54+
/// LinkGraph building code that's specific to the given ELFT, but common
5555
/// across all architectures.
5656
template <typename ELFT>
5757
class ELFLinkGraphBuilder : public ELFLinkGraphBuilderBase {

llvm/lib/ExecutionEngine/JITLink/ELF_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ void link_ELF_aarch64(std::unique_ptr<LinkGraph> G,
598598
PassConfiguration Config;
599599
const Triple &TT = G->getTargetTriple();
600600
if (Ctx->shouldAddDefaultTargetPasses(TT)) {
601-
// Add eh-frame passses.
601+
// Add eh-frame passes.
602602
Config.PrePrunePasses.push_back(DWARFRecordSectionSplitter(".eh_frame"));
603603
Config.PrePrunePasses.push_back(EHFrameEdgeFixer(
604604
".eh_frame", 8, aarch64::Pointer32, aarch64::Pointer64,

llvm/lib/ExecutionEngine/JITLink/ELF_loongarch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void link_ELF_loongarch(std::unique_ptr<LinkGraph> G,
186186
PassConfiguration Config;
187187
const Triple &TT = G->getTargetTriple();
188188
if (Ctx->shouldAddDefaultTargetPasses(TT)) {
189-
// Add eh-frame passses.
189+
// Add eh-frame passes.
190190
Config.PrePrunePasses.push_back(DWARFRecordSectionSplitter(".eh_frame"));
191191
Config.PrePrunePasses.push_back(
192192
EHFrameEdgeFixer(".eh_frame", G->getPointerSize(), Pointer32, Pointer64,

llvm/lib/ExecutionEngine/JITLink/ELF_ppc64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ void link_ELF_ppc64(std::unique_ptr<LinkGraph> G,
471471
if (Ctx->shouldAddDefaultTargetPasses(G->getTargetTriple())) {
472472
// Construct a JITLinker and run the link function.
473473

474-
// Add eh-frame passses.
474+
// Add eh-frame passes.
475475
Config.PrePrunePasses.push_back(DWARFRecordSectionSplitter(".eh_frame"));
476476
Config.PrePrunePasses.push_back(EHFrameEdgeFixer(
477477
".eh_frame", G->getPointerSize(), ppc64::Pointer32, ppc64::Pointer64,

llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// Generic MachO LinkGraph buliding code.
9+
// Generic MachO LinkGraph building code.
1010
//
1111
//===----------------------------------------------------------------------===//
1212

llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ void link_MachO_arm64(std::unique_ptr<LinkGraph> G,
567567
Config.PrePrunePasses.push_back(
568568
CompactUnwindSplitter("__LD,__compact_unwind"));
569569

570-
// Add eh-frame passses.
570+
// Add eh-frame passes.
571571
// FIXME: Prune eh-frames for which compact-unwind is available once
572572
// we support compact-unwind registration with libunwind.
573573
Config.PrePrunePasses.push_back(createEHFrameSplitterPass_MachO_arm64());

llvm/lib/ExecutionEngine/JITLink/MachO_x86_64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ void link_MachO_x86_64(std::unique_ptr<LinkGraph> G,
482482
PassConfiguration Config;
483483

484484
if (Ctx->shouldAddDefaultTargetPasses(G->getTargetTriple())) {
485-
// Add eh-frame passses.
485+
// Add eh-frame passes.
486486
Config.PrePrunePasses.push_back(createEHFrameSplitterPass_MachO_x86_64());
487487
Config.PrePrunePasses.push_back(createEHFrameEdgeFixerPass_MachO_x86_64());
488488

llvm/lib/ExecutionEngine/Orc/Core.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ void ReExportsMaterializationUnit::materialize(
349349
}
350350
}
351351

352-
// The OnResolveInfo struct will hold the aliases and responsibilty for each
352+
// The OnResolveInfo struct will hold the aliases and responsibility for each
353353
// query in the list.
354354
struct OnResolveInfo {
355355
OnResolveInfo(std::unique_ptr<MaterializationResponsibility> R,
@@ -2762,7 +2762,7 @@ void ExecutionSession::OL_completeLookup(
27622762

27632763
// Otherwise this is a match.
27642764

2765-
// If this symbol is already in the requried state then notify the
2765+
// If this symbol is already in the required state then notify the
27662766
// query, remove the symbol and continue.
27672767
if (SymI->second.getState() >= Q->getRequiredState()) {
27682768
LLVM_DEBUG(dbgs()

llvm/lib/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ Error RTDyldObjectLinkingLayer::onObjLoad(
233233
if (auto *COFFObj = dyn_cast<object::COFFObjectFile>(&Obj)) {
234234
auto &ES = getExecutionSession();
235235

236-
// For all resolved symbols that are not already in the responsibilty set:
236+
// For all resolved symbols that are not already in the responsibility set:
237237
// check whether the symbol is in a comdat section and if so mark it as
238238
// weak.
239239
for (auto &Sym : COFFObj->symbols()) {

llvm/lib/ExecutionEngine/Orc/SpeculateAnalyses.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ void SequenceBBQuery::traverseToExitBlock(const BasicBlock *AtBB,
227227
VisitedBlocks);
228228
}
229229

230-
// Get Block frequencies for blocks and take most frquently executed block,
230+
// Get Block frequencies for blocks and take most frequently executed block,
231231
// walk towards the entry block from those blocks and discover the basic blocks
232232
// with call.
233233
SequenceBBQuery::BlockListTy

llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void PerfJITEventListener::notifyObjectLoaded(
275275
SectionIndex = SectOrErr.get()->getIndex();
276276

277277
// According to spec debugging info has to come before loading the
278-
// corresonding code load.
278+
// corresponding code load.
279279
DILineInfoTable Lines = Context->getLineInfoForAddressRange(
280280
{*AddrOrErr, SectionIndex}, Size, FileLineInfoKind::AbsoluteFilePath);
281281

llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ RTDyldMemoryManager::getSymbolAddressInProcess(const std::string &Name) {
269269

270270
const char *NameStr = Name.c_str();
271271

272-
// DynamicLibrary::SearchForAddresOfSymbol expects an unmangled 'C' symbol
272+
// DynamicLibrary::SearchForAddressOfSymbol expects an unmangled 'C' symbol
273273
// name so ff we're on Darwin, strip the leading '_' off.
274274
#ifdef __APPLE__
275275
if (NameStr[0] == '_')

llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ class RuntimeDyldCheckerExprEval {
422422
return std::make_pair(EvalResult(StubAddr), RemainingExpr);
423423
}
424424

425-
// Evaluate an identiefer expr, which may be a symbol, or a call to
425+
// Evaluate an identifier expr, which may be a symbol, or a call to
426426
// one of the builtin functions: get_insn_opcode or get_insn_length.
427427
// Return the result, plus the expression remaining to be parsed.
428428
std::pair<EvalResult, StringRef> evalIdentifierExpr(StringRef Expr,
@@ -662,7 +662,7 @@ class RuntimeDyldCheckerExprEval {
662662
if (LHSResult.hasError() || RemainingExpr == "")
663663
return std::make_pair(LHSResult, RemainingExpr);
664664

665-
// Otherwise check if this is a binary expressioan.
665+
// Otherwise check if this is a binary expression.
666666
BinOpToken BinOp;
667667
std::tie(BinOp, RemainingExpr) = parseBinOpToken(RemainingExpr);
668668

llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class RuntimeDyldELF : public RuntimeDyldImpl {
108108
uint64_t findOrAllocGOTEntry(const RelocationValueRef &Value,
109109
unsigned GOTRelType);
110110

111-
// Resolve the relvative address of GOTOffset in Section ID and place
111+
// Resolve the relative address of GOTOffset in Section ID and place
112112
// it at the given Offset
113113
void resolveGOTOffsetRelocation(unsigned SectionID, uint64_t Offset,
114114
uint64_t GOTOffset, uint32_t Type);
@@ -121,8 +121,8 @@ class RuntimeDyldELF : public RuntimeDyldImpl {
121121
// Compute the address in memory where we can find the placeholder
122122
void *computePlaceholderAddress(unsigned SectionID, uint64_t Offset) const;
123123

124-
// Split out common case for createing the RelocationEntry for when the relocation requires
125-
// no particular advanced processing.
124+
// Split out common case for creating the RelocationEntry for when the
125+
// relocation requires no particular advanced processing.
126126
void processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType, RelocationValueRef Value);
127127

128128
// Return matching *LO16 relocation (Mips specific)

0 commit comments

Comments
 (0)