projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc5f017
)
Avoid in-class initializer from r210747
author
Alp Toker
<alp@nuanti.com>
Thu, 12 Jun 2014 04:27:37 +0000
(
04:27
+0000)
committer
Alp Toker
<alp@nuanti.com>
Thu, 12 Jun 2014 04:27:37 +0000
(
04:27
+0000)
Turns out MSVC doesn't like this. Sorry for the noise!
llvm-svn: 210749
llvm/include/llvm/MC/MCLinkerOptimizationHint.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/MC/MCLinkerOptimizationHint.h
b/llvm/include/llvm/MC/MCLinkerOptimizationHint.h
index
77bc090
..
50fd527
100644
(file)
--- 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(); }
};