mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Avoid in-class initializer from r210747
Turns out MSVC doesn't like this. Sorry for the noise! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210749 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5303292b87
commit
3299dee207
@ -133,13 +133,14 @@ public:
|
||||
uint64_t getEmitSize(const MachObjectWriter &ObjWriter,
|
||||
const MCAsmLayout &Layout) const {
|
||||
class raw_counting_ostream : public raw_ostream {
|
||||
uint64_t Count = 0;
|
||||
uint64_t Count;
|
||||
|
||||
void write_impl(const char *, size_t size) override { Count += size; }
|
||||
|
||||
uint64_t current_pos() const override { return Count; }
|
||||
|
||||
public:
|
||||
raw_counting_ostream() : Count(0) {}
|
||||
~raw_counting_ostream() { flush(); }
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user