[llvm] r210749 - Avoid in-class initializer from r210747
Alp Toker
alp at nuanti.com
Wed Jun 11 21:27:37 PDT 2014
Author: alp
Date: Wed Jun 11 23:27:37 2014
New Revision: 210749
URL: http://llvm.org/viewvc/llvm-project?rev=210749&view=rev
Log:
Avoid in-class initializer from r210747
Turns out MSVC doesn't like this. Sorry for the noise!
Modified:
llvm/trunk/include/llvm/MC/MCLinkerOptimizationHint.h
Modified: llvm/trunk/include/llvm/MC/MCLinkerOptimizationHint.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCLinkerOptimizationHint.h?rev=210749&r1=210748&r2=210749&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCLinkerOptimizationHint.h (original)
+++ llvm/trunk/include/llvm/MC/MCLinkerOptimizationHint.h Wed Jun 11 23:27:37 2014
@@ -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(); }
};
More information about the llvm-commits
mailing list