Remove many superfluous SmallString::str() calls.
authorYaron Keren <yaron.keren@gmail.com>
Wed, 18 Mar 2015 10:17:07 +0000 (10:17 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Wed, 18 Mar 2015 10:17:07 +0000 (10:17 +0000)
commit703b18546482a3734ee72ba0e2ba1813eefda627
tree9d4157ff0a59bd93d91e19c695009381873b1768
parentf3f16aa1c90c44347c00aba7873561014b90ed67
Remove many superfluous SmallString::str() calls.

Now that SmallString is a first-class citizen, most SmallString::str()
calls are not required. This patch removes a whole bunch of them, yet
there are lots more.

There are two use cases where str() is really needed:
1) To use one of StringRef member functions which is not available in
SmallString.
2) To convert to std::string, as StringRef implicitly converts while
SmallString do not. We may wish to change this, but it may introduce
ambiguity.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232622 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/FileUtilities.h
lib/MC/MCAsmStreamer.cpp
lib/MC/MCAssembler.cpp
lib/MC/MCDwarf.cpp
lib/Support/APInt.cpp
lib/Support/LockFileManager.cpp
lib/Support/Triple.cpp
lib/Support/Windows/Path.inc
utils/TableGen/FixedLenDecoderEmitter.cpp