]> granicus.if.org Git - llvm/commit
Instead of explicitely comparing both lowercase and uppercase variants.
authorRoman Divacky <rdivacky@freebsd.org>
Thu, 18 Dec 2014 23:12:34 +0000 (23:12 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Thu, 18 Dec 2014 23:12:34 +0000 (23:12 +0000)
commit4be95036e71a1bfb72f53601bb1d3f13a07e672f
treea8f0be1315575dcb69b7fd7196baf75e9e4ff9b7
parent82a4ce31b2cb6c87898d36aa491a061fd3504608
Instead of explicitely comparing both lowercase and uppercase variants.
.lower() the Name and compare only the lowecase. Removing 81 compares/lines of
code. This changes the accepted string to be mixed lower/upper case but it
should be ok.

Discussed with Jim Grosbach.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224547 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCExpr.cpp