summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2008-06-25 08:10:21 +0000
committerMatthijs Kooijman <matthijs@stdin.nl>2008-06-25 08:10:21 +0000
commit177058b4bd8980f48ec677fdbf5475ab16702179 (patch)
treeab43469bf03bee8da72e939afcc4772fe5762520 /lib/Transforms/IPO
parente5334ea518e3dffec4037ede97433eb700fa1d26 (diff)
downloadllvm-177058b4bd8980f48ec677fdbf5475ab16702179.tar.gz
llvm-177058b4bd8980f48ec677fdbf5475ab16702179.tar.bz2
llvm-177058b4bd8980f48ec677fdbf5475ab16702179.tar.xz
Fix some cosmetics in comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r--lib/Transforms/IPO/DeadArgumentElimination.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Transforms/IPO/DeadArgumentElimination.cpp b/lib/Transforms/IPO/DeadArgumentElimination.cpp
index 63ac3c5e92..6a0d674787 100644
--- a/lib/Transforms/IPO/DeadArgumentElimination.cpp
+++ b/lib/Transforms/IPO/DeadArgumentElimination.cpp
@@ -72,7 +72,7 @@ namespace {
/// Liveness enum - During our initial pass over the program, we determine
/// that things are either alive or maybe alive. We don't mark anything
- /// explicitely dead (even if we know they are), since anything not alive
+ /// explicitly dead (even if we know they are), since anything not alive
/// with no registered uses (in Uses) will never be marked alive and will
/// thus become dead in the end.
enum Liveness { Live, MaybeLive };
@@ -616,7 +616,7 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) {
if (RetTypes.size() > 1 || STy && STy->getNumElements() == RetTypes.size())
// More than one return type? Return a struct with them. Also, if we used
// to return a struct and didn't change the number of return values,
- // return a struct again. This prevents chaning {something} into something
+ // return a struct again. This prevents changing {something} into something
// and {} into void.
// Make the new struct packed if we used to return a packed struct
// already.
@@ -626,7 +626,7 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) {
// return a struct with that simple value before.
NRetTy = RetTypes.front();
else if (RetTypes.size() == 0)
- // No return types? Make it void, but only if we didn't use to return {}
+ // No return types? Make it void, but only if we didn't use to return {}.
NRetTy = Type::VoidTy;
} else {
NRetTy = Type::VoidTy;
@@ -685,8 +685,8 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) {
return false;
// The function type is only allowed to be different if we actually left out
- // an argument or return value
- assert(Changed && "Function type changed while no arguments or retrurn values"
+ // an argument or return value.
+ assert(Changed && "Function type changed while no arguments or return values"
"were removed!");
// Create the new function body and insert it into the module...
@@ -694,7 +694,7 @@ bool DAE::RemoveDeadStuffFromFunction(Function *F) {
NF->copyAttributesFrom(F);
NF->setParamAttrs(NewPAL);
// Insert the new function before the old function, so we won't be processing
- // it again
+ // it again.
F->getParent()->getFunctionList().insert(F, NF);
NF->takeName(F);