aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/FaultMaps.cpp
diff options
context:
space:
mode:
authorEugene Zelenko <eugene.zelenko@gmail.com>2017-02-27 22:45:06 +0000
committerEugene Zelenko <eugene.zelenko@gmail.com>2017-02-27 22:45:06 +0000
commitfa912a7151aa59d71bb03cf1a60fd8dff650c482 (patch)
treee5f5d0463fd35464389de9ead942346d1c635c99 /llvm/lib/CodeGen/FaultMaps.cpp
parent1f4e26fc58ccdfb38858545fd0596f366ade1925 (diff)
downloadllvm-fa912a7151aa59d71bb03cf1a60fd8dff650c482.zip
llvm-fa912a7151aa59d71bb03cf1a60fd8dff650c482.tar.gz
llvm-fa912a7151aa59d71bb03cf1a60fd8dff650c482.tar.bz2
[CodeGen] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 296404
Diffstat (limited to 'llvm/lib/CodeGen/FaultMaps.cpp')
-rw-r--r--llvm/lib/CodeGen/FaultMaps.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/FaultMaps.cpp b/llvm/lib/CodeGen/FaultMaps.cpp
index 374d6c7..43f3641 100644
--- a/llvm/lib/CodeGen/FaultMaps.cpp
+++ b/llvm/lib/CodeGen/FaultMaps.cpp
@@ -1,4 +1,4 @@
-//===---------------------------- FaultMaps.cpp ---------------------------===//
+//===- FaultMaps.cpp ------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -7,14 +7,17 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/CodeGen/FaultMaps.h"
-
+#include "llvm/ADT/Twine.h"
#include "llvm/CodeGen/AsmPrinter.h"
+#include "llvm/CodeGen/FaultMaps.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/Support/Debug.h"
+#include "llvm/Support/ErrorHandling.h"
+#include "llvm/Support/Format.h"
+#include "llvm/Support/raw_ostream.h"
using namespace llvm;
@@ -102,12 +105,10 @@ void FaultMaps::emitFunctionInfo(const MCSymbol *FnLabel,
}
}
-
const char *FaultMaps::faultTypeToString(FaultMaps::FaultKind FT) {
switch (FT) {
default:
llvm_unreachable("unhandled fault type!");
-
case FaultMaps::FaultingLoad:
return "FaultingLoad";
case FaultMaps::FaultingLoadStore: