summaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend/CPPTargetMachine.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/CppBackend/CPPTargetMachine.h')
-rw-r--r--lib/Target/CppBackend/CPPTargetMachine.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/CppBackend/CPPTargetMachine.h b/lib/Target/CppBackend/CPPTargetMachine.h
index 4170cdf4e4..db17c17826 100644
--- a/lib/Target/CppBackend/CPPTargetMachine.h
+++ b/lib/Target/CppBackend/CPPTargetMachine.h
@@ -19,6 +19,8 @@
namespace llvm {
+class raw_ostream;
+
struct CPPTargetMachine : public TargetMachine {
const TargetData DataLayout; // Calculates type size & alignment
@@ -26,7 +28,7 @@ struct CPPTargetMachine : public TargetMachine {
: DataLayout(&M) {}
virtual bool WantsWholeFile() const { return true; }
- virtual bool addPassesToEmitWholeFile(PassManager &PM, std::ostream &Out,
+ virtual bool addPassesToEmitWholeFile(PassManager &PM, raw_ostream &Out,
CodeGenFileType FileType, bool Fast);
// This class always works, but shouldn't be the default in most cases.