[ELF] Use llvm::Twine

llvm-svn: 221428
This commit is contained in:
Shankar Easwaran 2014-11-06 02:03:40 +00:00
parent e27c59d9e5
commit 2dfef4bfd6
1 changed files with 2 additions and 6 deletions

View File

@ -130,12 +130,8 @@ template <class ELFT> void ExecutableWriter<ELFT>::finalizeDefaultAtomValues() {
auto endAtomIter = this->_layout.findAbsoluteAtom("end");
auto startEnd = [&](StringRef sym, StringRef sec) -> void {
// TODO: This looks like a good place to use Twine...
std::string start("__"), end("__");
start += sym;
start += "_start";
end += sym;
end += "_end";
std::string start = (llvm::Twine("__", sym) + "_start").str();
std::string end = (llvm::Twine("__", sym) + "_end").str();
auto s = this->_layout.findAbsoluteAtom(start);
auto e = this->_layout.findAbsoluteAtom(end);
auto section = this->_layout.findOutputSection(sec);