diff options
Diffstat (limited to 'lib/Support/StringExtras.cpp')
| -rw-r--r-- | lib/Support/StringExtras.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/lib/Support/StringExtras.cpp b/lib/Support/StringExtras.cpp index b2f42dfcc04d..21157a14086d 100644 --- a/lib/Support/StringExtras.cpp +++ b/lib/Support/StringExtras.cpp @@ -13,6 +13,7 @@  #include "llvm/ADT/StringExtras.h"  #include "llvm/ADT/SmallVector.h" +#include "llvm/Support/raw_ostream.h"  using namespace llvm;  /// StrInStrNoCase - Portable version of strcasestr.  Locates the first @@ -56,3 +57,8 @@ void llvm::SplitString(StringRef Source,      S = getToken(S.second, Delimiters);    }  } + +void llvm::printLowerCase(StringRef String, raw_ostream &Out) { +  for (const char C : String) +    Out << toLower(C); +} | 
