aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/TargetMachineC.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-04-09 02:28:12 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-04-09 02:28:12 +0000
commit132381f9811190993b389e5171d30a1e2cd07f61 (patch)
tree5b314164eafbcd5c0dd64915559a183107d3f6e4 /llvm/lib/Target/TargetMachineC.cpp
parent0a261a3dda4e3198ff9e23f27fe50f3d34fe1c8b (diff)
downloadllvm-132381f9811190993b389e5171d30a1e2cd07f61.zip
llvm-132381f9811190993b389e5171d30a1e2cd07f61.tar.gz
llvm-132381f9811190993b389e5171d30a1e2cd07f61.tar.bz2
Use the cast machinery to remove dummy uses of formatted_raw_ostream.
If we know we are producing an object, we don't need to wrap the stream in a formatted_raw_ostream anymore. llvm-svn: 234461
Diffstat (limited to 'llvm/lib/Target/TargetMachineC.cpp')
-rw-r--r--llvm/lib/Target/TargetMachineC.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetMachineC.cpp b/llvm/lib/Target/TargetMachineC.cpp
index 236cb1b..cbfb914 100644
--- a/llvm/lib/Target/TargetMachineC.cpp
+++ b/llvm/lib/Target/TargetMachineC.cpp
@@ -183,7 +183,9 @@ void LLVMSetTargetMachineAsmVerbosity(LLVMTargetMachineRef T,
}
static LLVMBool LLVMTargetMachineEmit(LLVMTargetMachineRef T, LLVMModuleRef M,
- formatted_raw_ostream &OS, LLVMCodeGenFileType codegen, char **ErrorMessage) {
+ raw_ostream &OS,
+ LLVMCodeGenFileType codegen,
+ char **ErrorMessage) {
TargetMachine* TM = unwrap(T);
Module* Mod = unwrap(M);