summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-12 04:27:37 +0000
committerAlp Toker <alp@nuanti.com>2014-06-12 04:27:37 +0000
commit156027ce665d64b9e7ca577f1fa926dff1a337da (patch)
tree29e61de24ac2e301b6404e3b2f221d9b2f3aa686 /llvm
parentfc5f0178944e0846eee8ed849b917d6c6197510d (diff)
downloadbcm5719-llvm-156027ce665d64b9e7ca577f1fa926dff1a337da.tar.gz
bcm5719-llvm-156027ce665d64b9e7ca577f1fa926dff1a337da.zip
Avoid in-class initializer from r210747
Turns out MSVC doesn't like this. Sorry for the noise! llvm-svn: 210749
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/MC/MCLinkerOptimizationHint.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCLinkerOptimizationHint.h b/llvm/include/llvm/MC/MCLinkerOptimizationHint.h
index 77bc0900365..50fd527ffe2 100644
--- a/llvm/include/llvm/MC/MCLinkerOptimizationHint.h
+++ b/llvm/include/llvm/MC/MCLinkerOptimizationHint.h
@@ -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(); }
};
OpenPOWER on IntegriCloud