From: Benjamin Kramer Date: Sat, 8 Dec 2012 10:45:24 +0000 (+0000) Subject: Simplify code. Sort includes. No functionality change. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f242d8c31b3d00091d39343e2ebbd1e1ed7ea4bf;p=platform%2Fupstream%2Fllvm.git Simplify code. Sort includes. No functionality change. llvm-svn: 169676 --- diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp index 4a35055..d60103b 100644 --- a/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp +++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp @@ -15,12 +15,11 @@ #include "llvm/MC/MCELFStreamer.h" #include "llvm/ADT/SmallPtrSet.h" -#include "llvm/ADT/StringExtras.h" +#include "llvm/ADT/Twine.h" +#include "llvm/MC/MCAsmBackend.h" #include "llvm/MC/MCAssembler.h" #include "llvm/MC/MCCodeEmitter.h" #include "llvm/MC/MCContext.h" -#include "llvm/MC/MCSectionELF.h" -#include "llvm/MC/MCStreamer.h" #include "llvm/MC/MCELF.h" #include "llvm/MC/MCELFStreamer.h" #include "llvm/MC/MCELFSymbolFlags.h" @@ -28,9 +27,10 @@ #include "llvm/MC/MCInst.h" #include "llvm/MC/MCObjectStreamer.h" #include "llvm/MC/MCSection.h" +#include "llvm/MC/MCSectionELF.h" +#include "llvm/MC/MCStreamer.h" #include "llvm/MC/MCSymbol.h" #include "llvm/MC/MCValue.h" -#include "llvm/MC/MCAsmBackend.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ELF.h" #include "llvm/Support/ErrorHandling.h" @@ -151,8 +151,8 @@ private: EmitLabel(Start); MCSymbol *Symbol = - getContext().GetOrCreateSymbol(Name.str() + "." + - itostr(MappingSymbolCounter++)); + getContext().GetOrCreateSymbol(Name + "." + + Twine(MappingSymbolCounter++)); MCSymbolData &SD = getAssembler().getOrCreateSymbolData(*Symbol); MCELF::SetType(SD, ELF::STT_NOTYPE);