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/MCDisassembler/MCRelocationInfo.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/MCDisassembler/MCRelocationInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCDisassembler/MCRelocationInfo.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/MC/MCDisassembler/MCRelocationInfo.cpp b/llvm/lib/MC/MCDisassembler/MCRelocationInfo.cpp index 1612562497d..5805fd7007d 100644 --- a/llvm/lib/MC/MCDisassembler/MCRelocationInfo.cpp +++ b/llvm/lib/MC/MCDisassembler/MCRelocationInfo.cpp @@ -1,4 +1,4 @@ -//==-- MCRelocationInfo.cpp ------------------------------------------------==// +//===-- MCRelocationInfo.cpp ----------------------------------------------===// // // The LLVM Compiler Infrastructure // @@ -8,17 +8,14 @@ //===----------------------------------------------------------------------===// #include "llvm/MC/MCDisassembler/MCRelocationInfo.h" -#include "llvm-c/Disassembler.h" #include "llvm/Support/TargetRegistry.h" +#include "llvm-c/Disassembler.h" using namespace llvm; -MCRelocationInfo::MCRelocationInfo(MCContext &Ctx) - : Ctx(Ctx) { -} +MCRelocationInfo::MCRelocationInfo(MCContext &Ctx) : Ctx(Ctx) {} -MCRelocationInfo::~MCRelocationInfo() { -} +MCRelocationInfo::~MCRelocationInfo() = default; const MCExpr * MCRelocationInfo::createExprForCAPIVariantKind(const MCExpr *SubExpr, |