mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 17:25:49 +00:00
Move llvm:🆑:opt's conversion function into the base classes that
actually need that conversion function. Silences a Clang++ warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86148 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -781,6 +781,8 @@ public:
|
|||||||
|
|
||||||
DataType &getValue() { check(); return *Location; }
|
DataType &getValue() { check(); return *Location; }
|
||||||
const DataType &getValue() const { check(); return *Location; }
|
const DataType &getValue() const { check(); return *Location; }
|
||||||
|
|
||||||
|
operator DataType() const { return this->getValue(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -816,6 +818,8 @@ public:
|
|||||||
DataType &getValue() { return Value; }
|
DataType &getValue() { return Value; }
|
||||||
DataType getValue() const { return Value; }
|
DataType getValue() const { return Value; }
|
||||||
|
|
||||||
|
operator DataType() const { return getValue(); }
|
||||||
|
|
||||||
// If the datatype is a pointer, support -> on it.
|
// If the datatype is a pointer, support -> on it.
|
||||||
DataType operator->() const { return Value; }
|
DataType operator->() const { return Value; }
|
||||||
};
|
};
|
||||||
@@ -865,8 +869,6 @@ public:
|
|||||||
|
|
||||||
ParserClass &getParser() { return Parser; }
|
ParserClass &getParser() { return Parser; }
|
||||||
|
|
||||||
operator DataType() const { return this->getValue(); }
|
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
DataType &operator=(const T &Val) {
|
DataType &operator=(const T &Val) {
|
||||||
this->setValue(Val);
|
this->setValue(Val);
|
||||||
|
Reference in New Issue
Block a user