From 18a05df2133a01f38d14641e3a60fdea839c836d Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Mon, 15 Jun 2015 19:29:44 +0000 Subject: [PATCH] Unbreak the build from r239740. Do not re-use an enum name as a field name. Some bots don't like this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239746 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/FaultMaps.rst | 2 +- include/llvm/CodeGen/FaultMaps.h | 14 +++++++------- lib/CodeGen/FaultMaps.cpp | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/FaultMaps.rst b/docs/FaultMaps.rst index d6274fa0a2c..692cacf5c77 100644 --- a/docs/FaultMaps.rst +++ b/docs/FaultMaps.rst @@ -47,7 +47,7 @@ The format of this section is uint32 : NumFaultingPCs uint32 : Reserved (expected to be 0) FunctionFaultInfo[NumFaultingPCs] { - uint32 : FaultType = FaultMaps::FaultingLoad (only legal value currently) + uint32 : FaultKind = FaultMaps::FaultingLoad (only legal value currently) uint32 : FaultingPCOffset uint32 : handlerPCOffset } diff --git a/include/llvm/CodeGen/FaultMaps.h b/include/llvm/CodeGen/FaultMaps.h index 7127ecb124b..b1278ff257a 100644 --- a/include/llvm/CodeGen/FaultMaps.h +++ b/include/llvm/CodeGen/FaultMaps.h @@ -25,30 +25,30 @@ class MCStreamer; class FaultMaps { public: - enum FaultType { FaultingLoad = 1, FaultTypeMax }; + enum FaultKind { FaultingLoad = 1, FaultKindMax }; - static const char *faultTypeToString(FaultType); + static const char *faultTypeToString(FaultKind); explicit FaultMaps(AsmPrinter &AP); - void recordFaultingOp(FaultType FaultTy, const MCSymbol *HandlerLabel); + void recordFaultingOp(FaultKind FaultTy, const MCSymbol *HandlerLabel); void serializeToFaultMapSection(); private: static const char *WFMP; struct FaultInfo { - FaultType FaultType; + FaultKind Kind; const MCExpr *FaultingOffsetExpr; const MCExpr *HandlerOffsetExpr; FaultInfo() - : FaultType(FaultTypeMax), FaultingOffsetExpr(nullptr), + : Kind(FaultKindMax), FaultingOffsetExpr(nullptr), HandlerOffsetExpr(nullptr) {} - explicit FaultInfo(FaultMaps::FaultType FType, const MCExpr *FaultingOffset, + explicit FaultInfo(FaultMaps::FaultKind Kind, const MCExpr *FaultingOffset, const MCExpr *HandlerOffset) - : FaultType(FType), FaultingOffsetExpr(FaultingOffset), + : Kind(Kind), FaultingOffsetExpr(FaultingOffset), HandlerOffsetExpr(HandlerOffset) {} }; diff --git a/lib/CodeGen/FaultMaps.cpp b/lib/CodeGen/FaultMaps.cpp index 2f849511d69..0512ff95d1b 100644 --- a/lib/CodeGen/FaultMaps.cpp +++ b/lib/CodeGen/FaultMaps.cpp @@ -25,7 +25,7 @@ const char *FaultMaps::WFMP = "Fault Maps: "; FaultMaps::FaultMaps(AsmPrinter &AP) : AP(AP) {} -void FaultMaps::recordFaultingOp(FaultType FaultTy, +void FaultMaps::recordFaultingOp(FaultKind FaultTy, const MCSymbol *HandlerLabel) { MCContext &OutContext = AP.OutStreamer->getContext(); MCSymbol *FaultingLabel = OutContext.createTempSymbol(); @@ -89,8 +89,8 @@ void FaultMaps::emitFunctionInfo(const MCSymbol *FnLabel, for (auto &Fault : FFI) { DEBUG(dbgs() << WFMP << " fault type: " - << faultTypeToString(Fault.FaultType) << "\n"); - OS.EmitIntValue(Fault.FaultType, 4); + << faultTypeToString(Fault.Kind) << "\n"); + OS.EmitIntValue(Fault.Kind, 4); DEBUG(dbgs() << WFMP << " faulting PC offset: " << *Fault.FaultingOffsetExpr << "\n"); @@ -103,7 +103,7 @@ void FaultMaps::emitFunctionInfo(const MCSymbol *FnLabel, } -const char *FaultMaps::faultTypeToString(FaultMaps::FaultType FT) { +const char *FaultMaps::faultTypeToString(FaultMaps::FaultKind FT) { switch (FT) { default: llvm_unreachable("unhandled fault type!"); -- 2.34.1