Don't use 'using std::error_code' in include/llvm.
[oota-llvm.git] / include / llvm / ProfileData / InstrProfWriter.h
index f818fa08fa7fb24c65fb228a3de004d8cfcc7bf0..6e68bee30eb8ad15f39efa0a15dfa924db9d3fc8 100644 (file)
@@ -38,10 +38,11 @@ public:
   /// Add function counts for the given function. If there are already counts
   /// for this function and the hash and number of counts match, each counter is
   /// summed.
-  error_code addFunctionCounts(StringRef FunctionName, uint64_t FunctionHash,
-                               ArrayRef<uint64_t> Counters);
+  std::error_code addFunctionCounts(StringRef FunctionName,
+                                    uint64_t FunctionHash,
+                                    ArrayRef<uint64_t> Counters);
   /// Ensure that all data is written to disk.
-  void write(raw_ostream &OS);
+  void write(raw_fd_ostream &OS);
 };
 
 } // end namespace llvm