aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/FaultMaps.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2021-07-29 20:15:26 +0000
committerDimitry Andric <dim@FreeBSD.org>2021-07-29 20:15:26 +0000
commit344a3780b2e33f6ca763666c380202b18aab72a3 (patch)
treef0b203ee6eb71d7fdd792373e3c81eb18d6934dd /llvm/lib/CodeGen/FaultMaps.cpp
parentb60736ec1405bb0a8dd40989f67ef4c93da068ab (diff)
Diffstat (limited to 'llvm/lib/CodeGen/FaultMaps.cpp')
-rw-r--r--llvm/lib/CodeGen/FaultMaps.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/llvm/lib/CodeGen/FaultMaps.cpp b/llvm/lib/CodeGen/FaultMaps.cpp
index 23560b4cd136..1d35b194f218 100644
--- a/llvm/lib/CodeGen/FaultMaps.cpp
+++ b/llvm/lib/CodeGen/FaultMaps.cpp
@@ -15,8 +15,6 @@
#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;
@@ -114,39 +112,3 @@ const char *FaultMaps::faultTypeToString(FaultMaps::FaultKind FT) {
return "FaultingStore";
}
}
-
-raw_ostream &llvm::
-operator<<(raw_ostream &OS,
- const FaultMapParser::FunctionFaultInfoAccessor &FFI) {
- OS << "Fault kind: "
- << FaultMaps::faultTypeToString((FaultMaps::FaultKind)FFI.getFaultKind())
- << ", faulting PC offset: " << FFI.getFaultingPCOffset()
- << ", handling PC offset: " << FFI.getHandlerPCOffset();
- return OS;
-}
-
-raw_ostream &llvm::
-operator<<(raw_ostream &OS, const FaultMapParser::FunctionInfoAccessor &FI) {
- OS << "FunctionAddress: " << format_hex(FI.getFunctionAddr(), 8)
- << ", NumFaultingPCs: " << FI.getNumFaultingPCs() << "\n";
- for (unsigned i = 0, e = FI.getNumFaultingPCs(); i != e; ++i)
- OS << FI.getFunctionFaultInfoAt(i) << "\n";
- return OS;
-}
-
-raw_ostream &llvm::operator<<(raw_ostream &OS, const FaultMapParser &FMP) {
- OS << "Version: " << format_hex(FMP.getFaultMapVersion(), 2) << "\n";
- OS << "NumFunctions: " << FMP.getNumFunctions() << "\n";
-
- if (FMP.getNumFunctions() == 0)
- return OS;
-
- FaultMapParser::FunctionInfoAccessor FI;
-
- for (unsigned i = 0, e = FMP.getNumFunctions(); i != e; ++i) {
- FI = (i == 0) ? FMP.getFirstFunctionInfo() : FI.getNextFunctionInfo();
- OS << FI;
- }
-
- return OS;
-}