projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use a simple initial value for the ordinal.
[oota-llvm.git]
/
include
/
llvm
/
MC
/
MCExpr.h
diff --git
a/include/llvm/MC/MCExpr.h
b/include/llvm/MC/MCExpr.h
index 4b4b92049467e4aadd45fd5d4dd94f1fec05baf2..bfa4fdf495840a22af144bbb5c6346ab13545c03 100644
(file)
--- a/
include/llvm/MC/MCExpr.h
+++ b/
include/llvm/MC/MCExpr.h
@@
-116,7
+116,7
@@
public:
/// currently defined as the absolute section for constants, or
/// otherwise the section associated with the first defined symbol in the
/// expression.
/// currently defined as the absolute section for constants, or
/// otherwise the section associated with the first defined symbol in the
/// expression.
-
const
MCSection *FindAssociatedSection() const;
+ MCSection *FindAssociatedSection() const;
/// @}
};
/// @}
};
@@
-159,7
+159,7
@@
public:
/// of the symbol as external.
class MCSymbolRefExpr : public MCExpr {
public:
/// of the symbol as external.
class MCSymbolRefExpr : public MCExpr {
public:
- enum VariantKind {
+ enum VariantKind
: uint16_t
{
VK_None,
VK_Invalid,
VK_None,
VK_Invalid,
@@
-295,7
+295,7
@@
public:
private:
/// The symbol reference modifier.
private:
/// The symbol reference modifier.
- const
unsigned Kind : 16
;
+ const
VariantKind Kind
;
/// Specifies how the variant kind should be printed.
const unsigned UseParensForSymbolVariant : 1;
/// Specifies how the variant kind should be printed.
const unsigned UseParensForSymbolVariant : 1;
@@
-328,7
+328,7
@@
public:
const MCSymbol &getSymbol() const { return *Symbol; }
const MCSymbol &getSymbol() const { return *Symbol; }
- VariantKind getKind() const { return
static_cast<VariantKind>(Kind)
; }
+ VariantKind getKind() const { return
Kind
; }
void printVariantKind(raw_ostream &OS) const;
void printVariantKind(raw_ostream &OS) const;
@@
-558,7
+558,7
@@
public:
const MCAsmLayout *Layout,
const MCFixup *Fixup) const = 0;
virtual void visitUsedExpr(MCStreamer& Streamer) const = 0;
const MCAsmLayout *Layout,
const MCFixup *Fixup) const = 0;
virtual void visitUsedExpr(MCStreamer& Streamer) const = 0;
- virtual
const
MCSection *FindAssociatedSection() const = 0;
+ virtual MCSection *FindAssociatedSection() const = 0;
virtual void fixELFSymbolsInTLSFixups(MCAssembler &) const = 0;
virtual void fixELFSymbolsInTLSFixups(MCAssembler &) const = 0;