aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/PrologEpilogInserter.cpp8
-rw-r--r--lib/Target/X86/X86FrameLowering.cpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp
index ec5fe25704..4ad1480427 100644
--- a/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/lib/CodeGen/PrologEpilogInserter.cpp
@@ -701,10 +701,10 @@ void PEI::insertPrologEpilogCode(MachineFunction &Fn) {
TFI.emitEpilogue(Fn, *I);
}
- // Emit additional code that is required support segmented stacks, if we've
- // been asked for it. This, when linked with a runtime with support for
- // segmented stacks (libgcc is one), will result allocating stack space in
- // small chunks instead of one large contiguous block.
+ // Emit additional code that is required to support segmented stacks, if
+ // we've been asked for it. This, when linked with a runtime with support
+ // for segmented stacks (libgcc is one), will result in allocating stack
+ // space in small chunks instead of one large contiguous block.
if (EnableSegmentedStacks)
TFI.adjustForSegmentedStacks(Fn);
}
diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp
index 37cab937e9..6bc349ffc1 100644
--- a/lib/Target/X86/X86FrameLowering.cpp
+++ b/lib/Target/X86/X86FrameLowering.cpp
@@ -1292,8 +1292,8 @@ GetScratchRegister(bool Is64Bit, const MachineFunction &MF) {
if (CallingConvention == CallingConv::X86_FastCall) {
if (IsNested) {
- report_fatal_error("Segmented stacks does not supprot fastcall with "
- "nested fucntion.");
+ report_fatal_error("Segmented stacks does not support fastcall with "
+ "nested function.");
return -1;
} else {
return X86::EAX;