From 5a5ac124e1efaf208671f01c46edb15f29ed2a0b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 27 May 2015 18:44:32 +0000 Subject: Vendor import of llvm trunk r238337: https://llvm.org/svn/llvm-project/llvm/trunk@238337 --- include/llvm/MC/MCFixup.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/llvm/MC/MCFixup.h') diff --git a/include/llvm/MC/MCFixup.h b/include/llvm/MC/MCFixup.h index 98a1419a1934..8ab477c401a1 100644 --- a/include/llvm/MC/MCFixup.h +++ b/include/llvm/MC/MCFixup.h @@ -19,7 +19,7 @@ namespace llvm { class MCExpr; -/// MCFixupKind - Extensible enumeration to represent the type of a fixup. +/// \brief Extensible enumeration to represent the type of a fixup. enum MCFixupKind { FK_Data_1 = 0, ///< A one-byte fixup. FK_Data_2, ///< A two-byte fixup. @@ -45,7 +45,7 @@ enum MCFixupKind { MaxTargetFixupKind = (1 << 8) }; -/// MCFixup - Encode information on a single operation to perform on a byte +/// \brief Encode information on a single operation to perform on a byte /// sequence (e.g., an encoded instruction) which requires assemble- or run- /// time patching. /// @@ -75,7 +75,7 @@ class MCFixup { /// The source location which gave rise to the fixup, if any. SMLoc Loc; public: - static MCFixup Create(uint32_t Offset, const MCExpr *Value, + static MCFixup create(uint32_t Offset, const MCExpr *Value, MCFixupKind Kind, SMLoc Loc = SMLoc()) { assert(unsigned(Kind) < MaxTargetFixupKind && "Kind out of range!"); MCFixup FI; @@ -93,8 +93,8 @@ public: const MCExpr *getValue() const { return Value; } - /// getKindForSize - Return the generic fixup kind for a value with the given - /// size. It is an error to pass an unsupported size. + /// \brief Return the generic fixup kind for a value with the given size. It + /// is an error to pass an unsupported size. static MCFixupKind getKindForSize(unsigned Size, bool isPCRel) { switch (Size) { default: llvm_unreachable("Invalid generic fixup size!"); -- cgit v1.2.3