diff options
author | Jim Grosbach <grosbach@apple.com> | 2015-05-18 18:43:23 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2015-05-18 18:43:23 +0000 |
commit | 008359ae4a31edfc934a7781b113fb3edbe4c882 (patch) | |
tree | 53f94a69ccac1d7fe83d0053b93d26b18060f97a /llvm/lib/MC/MCContext.cpp | |
parent | 6f482000e996767855f6452c36d127e8c7c8e82d (diff) | |
download | bcm5719-llvm-008359ae4a31edfc934a7781b113fb3edbe4c882.tar.gz bcm5719-llvm-008359ae4a31edfc934a7781b113fb3edbe4c882.zip |
MC: clang-format MCContext. NFC.
llvm-svn: 237595
Diffstat (limited to 'llvm/lib/MC/MCContext.cpp')
-rw-r--r-- | llvm/lib/MC/MCContext.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index b3fadc87926..0d43c262bad 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -62,7 +62,7 @@ MCContext::~MCContext() { // we don't need to free them here. // If the stream for the .secure_log_unique directive was created free it. - delete (raw_ostream*)SecureLog; + delete (raw_ostream *)SecureLog; } //===----------------------------------------------------------------------===// @@ -81,7 +81,7 @@ void MCContext::reset() { MCGenDwarfLabelEntries.clear(); DwarfDebugFlags = StringRef(); DwarfCompileUnitID = 0; - CurrentDwarfLoc = MCDwarfLoc(0,0,0,DWARF2_FLAG_IS_STMT,0,0); + CurrentDwarfLoc = MCDwarfLoc(0, 0, 0, DWARF2_FLAG_IS_STMT, 0, 0); MachOUniquingMap.clear(); ELFUniquingMap.clear(); @@ -275,9 +275,10 @@ void MCContext::renameELFSection(const MCSectionELF *Section, StringRef Name) { ELFSectionKey{Section->getSectionName(), GroupName, UniqueID}); auto I = ELFUniquingMap.insert(std::make_pair( ELFSectionKey{Name, GroupName, UniqueID}, - Section)).first; + Section)) + .first; StringRef CachedName = I->first.SectionName; - const_cast<MCSectionELF*>(Section)->setSectionName(CachedName); + const_cast<MCSectionELF *>(Section)->setSectionName(CachedName); } const MCSectionELF * @@ -424,8 +425,8 @@ unsigned MCContext::getDwarfFile(StringRef Directory, StringRef FileName, /// isValidDwarfFileNumber - takes a dwarf file number and returns true if it /// currently is assigned and false otherwise. bool MCContext::isValidDwarfFileNumber(unsigned FileNumber, unsigned CUID) { - const SmallVectorImpl<MCDwarfFile>& MCDwarfFiles = getMCDwarfFiles(CUID); - if(FileNumber == 0 || FileNumber >= MCDwarfFiles.size()) + const SmallVectorImpl<MCDwarfFile> &MCDwarfFiles = getMCDwarfFiles(CUID); + if (FileNumber == 0 || FileNumber >= MCDwarfFiles.size()) return false; return !MCDwarfFiles[FileNumber].Name.empty(); @@ -447,8 +448,8 @@ void MCContext::finalizeDwarfSections(MCStreamer &MCOS) { sec->second.second = SectionEndSym; ++sec; } else { - MapVector<const MCSection *, std::pair<MCSymbol *, MCSymbol *> >::iterator - to_erase = sec; + MapVector<const MCSection *, std::pair<MCSymbol *, MCSymbol *>>::iterator + to_erase = sec; sec = SectionStartEndSyms.erase(to_erase); } } |