[llvm] r210748 - Avoid anonymous namespace in header from r210747
Alp Toker
alp at nuanti.com
Wed Jun 11 21:21:14 PDT 2014
Author: alp
Date: Wed Jun 11 23:21:14 2014
New Revision: 210748
URL: http://llvm.org/viewvc/llvm-project?rev=210748&view=rev
Log:
Avoid anonymous namespace in header from r210747
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=210748&r1=210747&r2=210748&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCLinkerOptimizationHint.h (original)
+++ llvm/trunk/include/llvm/MC/MCLinkerOptimizationHint.h Wed Jun 11 23:21:14 2014
@@ -96,19 +96,6 @@ static inline int MCLOHIdToNbArgs(MCLOHT
return -1;
}
-namespace {
-class raw_counting_ostream : public raw_ostream {
- uint64_t Count = 0;
-
- void write_impl(const char *, size_t size) override { Count += size; }
-
- uint64_t current_pos() const override { return Count; }
-
-public:
- ~raw_counting_ostream() { flush(); }
-};
-}
-
/// Store Linker Optimization Hint information (LOH).
class MCLOHDirective {
MCLOHType Kind;
@@ -145,6 +132,17 @@ public:
/// the given @p Layout.
uint64_t getEmitSize(const MachObjectWriter &ObjWriter,
const MCAsmLayout &Layout) const {
+ class raw_counting_ostream : public raw_ostream {
+ uint64_t Count = 0;
+
+ void write_impl(const char *, size_t size) override { Count += size; }
+
+ uint64_t current_pos() const override { return Count; }
+
+ public:
+ ~raw_counting_ostream() { flush(); }
+ };
+
raw_counting_ostream OutStream;
Emit_impl(OutStream, ObjWriter, Layout);
return OutStream.tell();
More information about the llvm-commits
mailing list