aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/IPO/ConstantMerge.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-24 17:20:08 +0000
committerAlp Toker <alp@nuanti.com>2014-01-24 17:20:08 +0000
commitcb4029110040c3655a66b5f423d328c749ba6a49 (patch)
treeff63cddc3870db1526fd120a14aa690e186239b9 /llvm/lib/Transforms/IPO/ConstantMerge.cpp
parentad6aa47c20ae7412873029fc6e611b05dc169e10 (diff)
downloadllvm-cb4029110040c3655a66b5f423d328c749ba6a49.zip
llvm-cb4029110040c3655a66b5f423d328c749ba6a49.tar.gz
llvm-cb4029110040c3655a66b5f423d328c749ba6a49.tar.bz2
Fix known typos
Sweep the codebase for common typos. Includes some changes to visible function names that were misspelt. llvm-svn: 200018
Diffstat (limited to 'llvm/lib/Transforms/IPO/ConstantMerge.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/ConstantMerge.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/ConstantMerge.cpp b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
index d94c0f4..aefcff9 100644
--- a/llvm/lib/Transforms/IPO/ConstantMerge.cpp
+++ b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
@@ -77,8 +77,8 @@ static void FindUsedValues(GlobalVariable *LLVMUsed,
}
// True if A is better than B.
-static bool IsBetterCannonical(const GlobalVariable &A,
- const GlobalVariable &B) {
+static bool IsBetterCanonical(const GlobalVariable &A,
+ const GlobalVariable &B) {
if (!A.hasLocalLinkage() && B.hasLocalLinkage())
return true;
@@ -160,7 +160,7 @@ bool ConstantMerge::runOnModule(Module &M) {
// If this is the first constant we find or if the old one is local,
// replace with the current one. If the current is externally visible
// it cannot be replace, but can be the canonical constant we merge with.
- if (Slot == 0 || IsBetterCannonical(*GV, *Slot))
+ if (Slot == 0 || IsBetterCanonical(*GV, *Slot))
Slot = GV;
}