diff options
| author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-02-08 22:23:19 +0000 |
|---|---|---|
| committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-02-08 22:23:19 +0000 |
| commit | 3d8b0ebb68e50c7495ed82349ea0b08593fc0314 (patch) | |
| tree | 33489a3c436be52eef0b7ccf39e2060e50bfa1f0 /llvm/lib/MC/MCSection.cpp | |
| parent | 41e7e34c498bf777182cfae8490a077c97b9db60 (diff) | |
| download | bcm5719-llvm-3d8b0ebb68e50c7495ed82349ea0b08593fc0314.tar.gz bcm5719-llvm-3d8b0ebb68e50c7495ed82349ea0b08593fc0314.zip | |
[MC] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 294526
Diffstat (limited to 'llvm/lib/MC/MCSection.cpp')
| -rw-r--r-- | llvm/lib/MC/MCSection.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/MC/MCSection.cpp b/llvm/lib/MC/MCSection.cpp index 7a42a2758e8..7986c012204 100644 --- a/llvm/lib/MC/MCSection.cpp +++ b/llvm/lib/MC/MCSection.cpp @@ -7,17 +7,18 @@ // //===----------------------------------------------------------------------===// -#include "llvm/MC/MCSection.h" -#include "llvm/MC/MCAssembler.h" -#include "llvm/MC/MCAsmInfo.h" +#include "llvm/ADT/SmallVector.h" #include "llvm/MC/MCContext.h" +#include "llvm/MC/MCFragment.h" +#include "llvm/MC/MCSection.h" #include "llvm/MC/MCSymbol.h" +#include "llvm/Support/Compiler.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" -using namespace llvm; +#include <algorithm> +#include <utility> -//===----------------------------------------------------------------------===// -// MCSection -//===----------------------------------------------------------------------===// +using namespace llvm; MCSection::MCSection(SectionVariant V, SectionKind K, MCSymbol *Begin) : Begin(Begin), BundleGroupBeforeFirstInst(false), HasInstructions(false), @@ -31,8 +32,7 @@ MCSymbol *MCSection::getEndSymbol(MCContext &Ctx) { bool MCSection::hasEnded() const { return End && End->isInSection(); } -MCSection::~MCSection() { -} +MCSection::~MCSection() = default; void MCSection::setBundleLockState(BundleLockStateType NewState) { if (NewState == NotBundleLocked) { @@ -87,7 +87,7 @@ MCSection::getSubsectionInsertionPoint(unsigned Subsection) { #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) LLVM_DUMP_METHOD void MCSection::dump() { - raw_ostream &OS = llvm::errs(); + raw_ostream &OS = errs(); OS << "<MCSection"; OS << " Fragments:[\n "; |

